mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-11 12:06:17 +00:00
Add banned users and hidden levels page to mod panel
This commit is contained in:
parent
4be8efc244
commit
67bad4fd1e
8 changed files with 178 additions and 3 deletions
|
@ -0,0 +1,41 @@
|
|||
@page "/moderation/bannedUsers/{pageNumber:int}"
|
||||
@using LBPUnion.ProjectLighthouse.Extensions
|
||||
@using LBPUnion.ProjectLighthouse.Localization.StringLists
|
||||
@using LBPUnion.ProjectLighthouse.PlayerData.Profiles
|
||||
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.Moderation.BannedUsersPage
|
||||
|
||||
@{
|
||||
Layout = "Layouts/BaseLayout";
|
||||
Model.Title = Model.Translate(ModPanelStrings.BannedUsers);
|
||||
bool isMobile = Model.Request.IsMobile();
|
||||
}
|
||||
|
||||
<p>There are @Model.UserCount banned users.</p>
|
||||
|
||||
@foreach (User user in Model.Users)
|
||||
{
|
||||
<div class="ui segment">
|
||||
@await Html.PartialAsync("Partials/UserCardPartial", user, new ViewDataDictionary(ViewData)
|
||||
{
|
||||
{
|
||||
"ShowLink", true
|
||||
},
|
||||
{
|
||||
"IsMobile", isMobile
|
||||
},
|
||||
{
|
||||
"Language", Model.GetLanguage()
|
||||
},
|
||||
})
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (Model.PageNumber != 0)
|
||||
{
|
||||
<a href="/moderation/bannedUsers/@(Model.PageNumber - 1)">Previous Page</a>
|
||||
}
|
||||
@(Model.PageNumber + 1) / @(Model.PageAmount)
|
||||
@if (Model.PageNumber < Model.PageAmount - 1)
|
||||
{
|
||||
<a href="/moderation/bannedUsers/@(Model.PageNumber + 1)">Next Page</a>
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue