@ViewBag.Title
diff --git a/WebfrontCore/Views/Client/Profile/Index.cshtml b/WebfrontCore/Views/Client/Profile/Index.cshtml
index b5e067ec..d5f9e446 100644
--- a/WebfrontCore/Views/Client/Profile/Index.cshtml
+++ b/WebfrontCore/Views/Client/Profile/Index.cshtml
@@ -1,8 +1,9 @@
@using SharedLibraryCore.Interfaces
@using Data.Models
@using Data.Models.Client
-@using WebfrontCore.Permissions
-@using WebfrontCore.ViewModels
+@using IW4MAdmin.WebfrontCore.Permissions
+@using IW4MAdmin.WebfrontCore.ViewModels
+@using SharedLibraryCore
@model SharedLibraryCore.Dtos.PlayerInfo
@{
var match = System.Text.RegularExpressions.Regex.Match(Model.Name.ToUpper(), "[A-Z]").Value;
diff --git a/WebfrontCore/Views/Client/Profile/Meta/_AdministeredPenaltyResponse.cshtml b/WebfrontCore/Views/Client/Profile/Meta/_AdministeredPenaltyResponse.cshtml
index 7f47685d..05dda808 100644
--- a/WebfrontCore/Views/Client/Profile/Meta/_AdministeredPenaltyResponse.cshtml
+++ b/WebfrontCore/Views/Client/Profile/Meta/_AdministeredPenaltyResponse.cshtml
@@ -1,4 +1,5 @@
-@using SharedLibraryCore.Dtos.Meta.Responses
+@using SharedLibraryCore
+@using SharedLibraryCore.Dtos.Meta.Responses
@model AdministeredPenaltyResponse
@{
var localizationKey = $"WEBFRONT_CLIENT_META_PENALIZED_{Model.PenaltyType.ToString().ToUpper()}_V2";
diff --git a/WebfrontCore/Views/Client/Profile/Meta/_ConnectionHistoryResponse.cshtml b/WebfrontCore/Views/Client/Profile/Meta/_ConnectionHistoryResponse.cshtml
index 302b7161..1dfdca3a 100644
--- a/WebfrontCore/Views/Client/Profile/Meta/_ConnectionHistoryResponse.cshtml
+++ b/WebfrontCore/Views/Client/Profile/Meta/_ConnectionHistoryResponse.cshtml
@@ -1,4 +1,5 @@
@using Data.Models
+@using SharedLibraryCore
@model SharedLibraryCore.Dtos.Meta.Responses.ConnectionHistoryResponse
@{
var localizationKey = $"WEBFRONT_CLIENT_META_CONNECTION_{Model.ConnectionType.ToString().ToUpper()}";
diff --git a/WebfrontCore/Views/Client/Profile/Meta/_Information.cshtml b/WebfrontCore/Views/Client/Profile/Meta/_Information.cshtml
index fd33a204..4683b7b2 100644
--- a/WebfrontCore/Views/Client/Profile/Meta/_Information.cshtml
+++ b/WebfrontCore/Views/Client/Profile/Meta/_Information.cshtml
@@ -1,4 +1,5 @@
@using Humanizer
+@using SharedLibraryCore
@model IEnumerable
@{
var informationMeta = Model
diff --git a/WebfrontCore/Views/Client/Profile/Meta/_MessageResponse.cshtml b/WebfrontCore/Views/Client/Profile/Meta/_MessageResponse.cshtml
index b3ccf0cc..c20b1a7b 100644
--- a/WebfrontCore/Views/Client/Profile/Meta/_MessageResponse.cshtml
+++ b/WebfrontCore/Views/Client/Profile/Meta/_MessageResponse.cshtml
@@ -1,4 +1,5 @@
-@using SharedLibraryCore.Dtos.Meta.Responses
+@using SharedLibraryCore
+@using SharedLibraryCore.Dtos.Meta.Responses
@model MessageResponse
@if (TempData["ShowMetaHeader"] as bool? ?? false)
diff --git a/WebfrontCore/Views/Client/Profile/Meta/_MetaHeader.cshtml b/WebfrontCore/Views/Client/Profile/Meta/_MetaHeader.cshtml
index b4886896..9197ce0a 100644
--- a/WebfrontCore/Views/Client/Profile/Meta/_MetaHeader.cshtml
+++ b/WebfrontCore/Views/Client/Profile/Meta/_MetaHeader.cshtml
@@ -1,4 +1,5 @@
-@model DateTime
+@using SharedLibraryCore
+@model DateTime
@{ Layout = null;}
@Model.HumanizeForCurrentCulture()
diff --git a/WebfrontCore/Views/Client/Profile/Meta/_PermissionLevelChangedResponse.cshtml b/WebfrontCore/Views/Client/Profile/Meta/_PermissionLevelChangedResponse.cshtml
index 49f3bcb1..42a4be90 100644
--- a/WebfrontCore/Views/Client/Profile/Meta/_PermissionLevelChangedResponse.cshtml
+++ b/WebfrontCore/Views/Client/Profile/Meta/_PermissionLevelChangedResponse.cshtml
@@ -1,4 +1,5 @@
-@model SharedLibraryCore.Dtos.Meta.Responses.PermissionLevelChangedResponse
+@using SharedLibraryCore
+@model SharedLibraryCore.Dtos.Meta.Responses.PermissionLevelChangedResponse
@if (TempData["ShowMetaHeader"] as bool? ?? false)
diff --git a/WebfrontCore/Views/Client/Profile/Meta/_ReceivedPenaltyResponse.cshtml b/WebfrontCore/Views/Client/Profile/Meta/_ReceivedPenaltyResponse.cshtml
index 30809f3f..f5c1ccd6 100644
--- a/WebfrontCore/Views/Client/Profile/Meta/_ReceivedPenaltyResponse.cshtml
+++ b/WebfrontCore/Views/Client/Profile/Meta/_ReceivedPenaltyResponse.cshtml
@@ -1,4 +1,6 @@
-@using SharedLibraryCore.Dtos.Meta.Responses
+@using Microsoft.AspNetCore.Mvc.TagHelpers
+@using SharedLibraryCore
+@using SharedLibraryCore.Dtos.Meta.Responses
@model ReceivedPenaltyResponse
@{
diff --git a/WebfrontCore/Views/Client/Profile/Meta/_UpdatedAliasResponse.cshtml b/WebfrontCore/Views/Client/Profile/Meta/_UpdatedAliasResponse.cshtml
index b20ab43d..b85e1eeb 100644
--- a/WebfrontCore/Views/Client/Profile/Meta/_UpdatedAliasResponse.cshtml
+++ b/WebfrontCore/Views/Client/Profile/Meta/_UpdatedAliasResponse.cshtml
@@ -1,4 +1,5 @@
-@using SharedLibraryCore.Dtos.Meta.Responses
+@using SharedLibraryCore
+@using SharedLibraryCore.Dtos.Meta.Responses
@model UpdatedAliasResponse
@if (TempData["ShowMetaHeader"] as bool? ?? false)
diff --git a/WebfrontCore/Views/Client/Statistics/Advanced.cshtml b/WebfrontCore/Views/Client/Statistics/Advanced.cshtml
index bbf44930..09b80ce8 100644
--- a/WebfrontCore/Views/Client/Statistics/Advanced.cshtml
+++ b/WebfrontCore/Views/Client/Statistics/Advanced.cshtml
@@ -1,15 +1,17 @@
@using SharedLibraryCore.Configuration
@using Data.Models.Client.Stats
-@using Stats.Helpers
@using Data.Models.Client
@using Data.Models.Client.Stats.Reference
@using Humanizer
@using Humanizer.Localisation
-@using IW4MAdmin.Plugins.Stats
-@using WebfrontCore.ViewModels
@using System.Text.Json
-@using IW4MAdmin.Plugins.Stats.Web.Dtos
-@model Stats.Dtos.AdvancedStatsInfo
+@using IW4MAdmin.Plugins.Stats
+@using IW4MAdmin.Plugins.Stats.Dtos
+@using IW4MAdmin.Plugins.Stats.Helpers
+@using IW4MAdmin.WebfrontCore.ViewModels
+@using SharedLibraryCore
+@using Stats
+@model IW4MAdmin.Plugins.Stats.Dtos.AdvancedStatsInfo
@{
ViewBag.Title = ViewBag.Localization["WEBFRONT_ADV_STATS_TITLE"];
diff --git a/WebfrontCore/Views/Client/Statistics/Components/TopPlayers/_List.cshtml b/WebfrontCore/Views/Client/Statistics/Components/TopPlayers/_List.cshtml
index f4bbb0ac..2fc9a7fe 100644
--- a/WebfrontCore/Views/Client/Statistics/Components/TopPlayers/_List.cshtml
+++ b/WebfrontCore/Views/Client/Statistics/Components/TopPlayers/_List.cshtml
@@ -1,6 +1,8 @@
-@using IW4MAdmin.Plugins.Stats
-@using System.Text.Json
-@model List
+@using System.Text.Json
+@using IW4MAdmin.Plugins.Stats
+@using SharedLibraryCore
+@using Stats
+@model List
@{
Layout = null;
var loc = Utilities.CurrentLocalization.LocalizationIndex.Set;
diff --git a/WebfrontCore/Views/Client/Statistics/Index.cshtml b/WebfrontCore/Views/Client/Statistics/Index.cshtml
index cbf76fbd..66dc621e 100644
--- a/WebfrontCore/Views/Client/Statistics/Index.cshtml
+++ b/WebfrontCore/Views/Client/Statistics/Index.cshtml
@@ -1,5 +1,6 @@
@model IEnumerable
-@using WebfrontCore.ViewModels
+@using IW4MAdmin.WebfrontCore.ViewModels
+@using SharedLibraryCore
diff --git a/WebfrontCore/Views/Client/_PenaltyInfo.cshtml b/WebfrontCore/Views/Client/_PenaltyInfo.cshtml
index fcead07a..f92061d7 100644
--- a/WebfrontCore/Views/Client/_PenaltyInfo.cshtml
+++ b/WebfrontCore/Views/Client/_PenaltyInfo.cshtml
@@ -1,4 +1,5 @@
-@model IEnumerable
+@using SharedLibraryCore
+@model IEnumerable
@{
Layout = null;
}
diff --git a/WebfrontCore/Views/Configuration/Files.cshtml b/WebfrontCore/Views/Configuration/Files.cshtml
index 9f848ef9..d8e229c1 100644
--- a/WebfrontCore/Views/Configuration/Files.cshtml
+++ b/WebfrontCore/Views/Configuration/Files.cshtml
@@ -1,4 +1,5 @@
-@model IEnumerable
+@using SharedLibraryCore
+@model IEnumerable
@{
ViewData["Title"] = Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_CONFIGURATION_TITLE"];
var noticeText = Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_CONFIGURATION_SAVING_CHANGES"];
diff --git a/WebfrontCore/Views/Configuration/_ListItem.cshtml b/WebfrontCore/Views/Configuration/_ListItem.cshtml
index 57af4b2d..c36fde14 100644
--- a/WebfrontCore/Views/Configuration/_ListItem.cshtml
+++ b/WebfrontCore/Views/Configuration/_ListItem.cshtml
@@ -1,4 +1,4 @@
-@model WebfrontCore.ViewModels.BindingHelper
+@model IW4MAdmin.WebfrontCore.ViewModels.BindingHelper
@if (Model.Properties.Length == 1)
{
diff --git a/WebfrontCore/Views/Console/Index.cshtml b/WebfrontCore/Views/Console/Index.cshtml
index 714ba2f7..d51165d0 100644
--- a/WebfrontCore/Views/Console/Index.cshtml
+++ b/WebfrontCore/Views/Console/Index.cshtml
@@ -1,4 +1,5 @@
-@model IEnumerable
+@using SharedLibraryCore
+@model IEnumerable
Web Console
diff --git a/WebfrontCore/Views/Home/Help.cshtml b/WebfrontCore/Views/Home/Help.cshtml
index 5aa15de8..6a0c7137 100644
--- a/WebfrontCore/Views/Home/Help.cshtml
+++ b/WebfrontCore/Views/Home/Help.cshtml
@@ -1,4 +1,5 @@
-@model IEnumerable<(string, IEnumerable)>
+@using SharedLibraryCore
+@model IEnumerable<(string, IEnumerable)>
@{
var loc = Utilities.CurrentLocalization.LocalizationIndex;
}
diff --git a/WebfrontCore/Views/Home/Index.cshtml b/WebfrontCore/Views/Home/Index.cshtml
index 29ae81f1..a8bc04b6 100644
--- a/WebfrontCore/Views/Home/Index.cshtml
+++ b/WebfrontCore/Views/Home/Index.cshtml
@@ -1,5 +1,6 @@
-@using WebfrontCore.ViewModels
-@using Humanizer
+@using Humanizer
+@using IW4MAdmin.WebfrontCore.ViewModels
+@using SharedLibraryCore
@model SharedLibraryCore.Dtos.IW4MAdminInfo
@{
var loc = Utilities.CurrentLocalization.LocalizationIndex;
diff --git a/WebfrontCore/Views/Penalty/List.cshtml b/WebfrontCore/Views/Penalty/List.cshtml
index a65ea844..36fff473 100644
--- a/WebfrontCore/Views/Penalty/List.cshtml
+++ b/WebfrontCore/Views/Penalty/List.cshtml
@@ -1,5 +1,7 @@
-@using Humanizer
-@using Data.Models
+@using Data.Models
+@using Humanizer
+@using Microsoft.AspNetCore.Mvc.TagHelpers
+@using SharedLibraryCore
@model Data.Models.EFPenalty.PenaltyType
@{
var loc = Utilities.CurrentLocalization.LocalizationIndex;
@@ -68,7 +70,7 @@
- @await Component.InvokeAsync("PenaltyList", new WebfrontCore.ViewModels.PenaltyFilterInfo
+ @await Component.InvokeAsync("PenaltyList", new IW4MAdmin.WebfrontCore.ViewModels.PenaltyFilterInfo
{
Offset = 0,
Count = 30,
diff --git a/WebfrontCore/Views/Penalty/PenaltyInfoList.cshtml b/WebfrontCore/Views/Penalty/PenaltyInfoList.cshtml
index afba53b0..36ee768c 100644
--- a/WebfrontCore/Views/Penalty/PenaltyInfoList.cshtml
+++ b/WebfrontCore/Views/Penalty/PenaltyInfoList.cshtml
@@ -1,12 +1,14 @@
-@{
+@using SharedLibraryCore.Dtos
+@using Data.Models
+@using IW4MAdmin.WebfrontCore.Permissions
+@using SharedLibraryCore
+@model IList
+
+@{
Layout = null;
-
+
bool CanSeeLevel(PenaltyInfo penalty) => (ViewBag.PermissionsSet as IEnumerable).HasPermission(WebfrontEntity.ClientLevel, WebfrontPermission.Read) || penalty.PenaltyType == EFPenalty.PenaltyType.Report;
}
-@using WebfrontCore.Permissions
-@using SharedLibraryCore.Dtos
-@using Data.Models
-@model IList
@{
foreach (var penalty in Model.Where(CanSeeLevel))
diff --git a/WebfrontCore/Views/Penalty/_List.cshtml b/WebfrontCore/Views/Penalty/_List.cshtml
index 9e4534c5..36f307fc 100644
--- a/WebfrontCore/Views/Penalty/_List.cshtml
+++ b/WebfrontCore/Views/Penalty/_List.cshtml
@@ -2,6 +2,6 @@
Layout = null;
}
-@model WebfrontCore.ViewModels.PenaltyFilterInfo
+@model IW4MAdmin.WebfrontCore.ViewModels.PenaltyFilterInfo
@await Component.InvokeAsync("PenaltyList", new { offset = Model.Offset, count = Model.Count, showOnly = Model.ShowOnly, ignoreAutomated = Model.IgnoreAutomated })
diff --git a/WebfrontCore/Views/Penalty/_Penalty.cshtml b/WebfrontCore/Views/Penalty/_Penalty.cshtml
index a97c2439..844f58a2 100644
--- a/WebfrontCore/Views/Penalty/_Penalty.cshtml
+++ b/WebfrontCore/Views/Penalty/_Penalty.cshtml
@@ -7,7 +7,8 @@
var offenderLevelClass = canSeeLevel ? $"level-color-{Model.OffenderLevel.ToString().ToLower()}" : "text-light-dm text-dark-lm";
}
-@using WebfrontCore.Permissions
+@using IW4MAdmin.WebfrontCore.Permissions
+@using SharedLibraryCore
@model SharedLibraryCore.Dtos.PenaltyInfo
diff --git a/WebfrontCore/Views/Plugins/LiveRadar/Radar/Index.cshtml b/WebfrontCore/Views/Plugins/LiveRadar/Radar/Index.cshtml
index 76e3a887..208493cd 100644
--- a/WebfrontCore/Views/Plugins/LiveRadar/Radar/Index.cshtml
+++ b/WebfrontCore/Views/Plugins/LiveRadar/Radar/Index.cshtml
@@ -1,4 +1,5 @@
-@using WebfrontCore.ViewModels
+@using IW4MAdmin.WebfrontCore.ViewModels
+@using SharedLibraryCore
@model IEnumerable