- @{
- string displayAliasButton = Model.Aliases.Count > 0 ? "" : "display: none;";
- }
-
@Model.Name
-
- @{
- foreach (string alias in Model.Aliases)
- {
- @alias
- }
+
+
+ @Model.Name
+ @if (Model.Aliases.Count > 0 || ViewBag.Authorized)
+ {
+
}
-
-
-
-
@Model.Level
-
-
- Played @Model.TimePlayed hours
-
-
- First seen @Model.FirstSeen ago
-
-
- Last seen @Model.LastSeen ago
-
-
-
diff --git a/WebfrontCore/Views/Shared/_Layout.cshtml b/WebfrontCore/Views/Shared/_Layout.cshtml
index 7acdae94c..c37f27152 100644
--- a/WebfrontCore/Views/Shared/_Layout.cshtml
+++ b/WebfrontCore/Views/Shared/_Layout.cshtml
@@ -35,6 +35,24 @@
+
+
@RenderBody()
diff --git a/WebfrontCore/app.config b/WebfrontCore/app.config
index 6a931919a..f992bd05c 100644
--- a/WebfrontCore/app.config
+++ b/WebfrontCore/app.config
@@ -8,6 +8,7 @@
+
diff --git a/WebfrontCore/appsettings.json b/WebfrontCore/appsettings.json
index 44ed6f6ef..aac58dad5 100644
--- a/WebfrontCore/appsettings.json
+++ b/WebfrontCore/appsettings.json
@@ -6,5 +6,8 @@
"System": "Information",
"Microsoft": "None"
}
+ },
+ "Web": {
+ "Address": "127.0.0.1:5000"
}
}
diff --git a/WebfrontCore/wwwroot/js/profile.js b/WebfrontCore/wwwroot/js/profile.js
index d6d04b8ea..a9011de09 100644
--- a/WebfrontCore/wwwroot/js/profile.js
+++ b/WebfrontCore/wwwroot/js/profile.js
@@ -49,6 +49,19 @@ $(document).ready(function () {
}
});
+ /*
+ get ip geolocation info into modal
+ */
+ $('.ip-locate-link').click(function (e) {
+ $.getJSON("http://ip-api.com/json/" + $(this).data("ip"))
+ .done(function (response) {
+ $('.modal-title').text($(this).data("ip"));
+ $('.modal-body').text(JSON.stringify(response, null, 4));
+ $('#mainModal').modal();
+ });
+
+ });
+
});
function penaltyToName(penaltyName) {