add game to player profile and admins page

This commit is contained in:
RaidMax
2022-06-07 21:58:32 -05:00
parent ab494a22cb
commit cf2a00e5b3
6 changed files with 18 additions and 6 deletions

View File

@ -5,10 +5,11 @@
@foreach (var key in Model.Keys)
{
<table class="table mb-20">
<table class="table mb-20" style="table-layout:fixed;">
<thead>
<tr class="level-bgcolor-@((int)key)">
<th class="text-light">@key.ToLocalizedLevelName()</th>
<th>Game</th>
<th class="text-right font-weight-bold">Last Connected</th>
</tr>
</thead>
@ -33,6 +34,9 @@
<color-code value="@client.Name"></color-code>
</a>
</td>
<td>
<div class="badge">@ViewBag.Localization[$"GAME_{client.Game}"]</div>
</td>
<td class="text-right">
@client.LastConnection.HumanizeForCurrentCulture()
</td>

View File

@ -58,7 +58,8 @@
</has-permission>
}
<h2 class="content-title mb-10">Player Profile</h2>
<h2 class="content-title mb-0">Player Profile</h2>
<div class="font-size-12 text-muted">@ViewBag.Localization[$"GAME_{Model.Game}"]</div>
<div id="profile_wrapper" class="mb-10 mt-10">
@ -200,7 +201,7 @@
</div>
</div>
</div>
<div>
<hr class="mr-5 ml-5"/>
<!-- meta info block -->
@ -299,7 +300,7 @@
EntityId = Model.ClientId
});
}
if (Model.LevelInt < (int)ViewBag.User.Level && Model.Online)
{
menuItems.Items.Add(new SideContextMenuItem