added CreatedAt to User overview
This commit is contained in:
parent
07eede3f9a
commit
ad71a7b571
1 changed files with 5 additions and 3 deletions
|
@ -32,7 +32,8 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>GW2 Account</th>
|
<th>GW2 Account</th>
|
||||||
<th>Banned Until</th>
|
<th style="padding-left: 15px;">Created At</th>
|
||||||
|
<th style="padding-left: 15px;">Banned Until</th>
|
||||||
</tr>
|
</tr>
|
||||||
@{
|
@{
|
||||||
HashSet<LiebUser> foundUsers = new HashSet<LiebUser>();
|
HashSet<LiebUser> foundUsers = new HashSet<LiebUser>();
|
||||||
|
@ -59,7 +60,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@foreach (LiebUser user in foundUsers)
|
@foreach (LiebUser user in foundUsers.OrderBy(u => u.CreatedAt))
|
||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nav-item px-3">
|
<td class="nav-item px-3">
|
||||||
|
@ -67,9 +68,10 @@
|
||||||
<NavLink class="nav-link" href="@navLink">@user.Name</NavLink>
|
<NavLink class="nav-link" href="@navLink">@user.Name</NavLink>
|
||||||
</td>
|
</td>
|
||||||
<td>@foreach(var account in user.GuildWars2Accounts){<div>@account.AccountName </div> }</td>
|
<td>@foreach(var account in user.GuildWars2Accounts){<div>@account.AccountName </div> }</td>
|
||||||
|
<td style="padding-left: 15px;">@user.CreatedAt.ToShortDateString()</td>
|
||||||
@if(user.BannedUntil >= DateTime.Now.Date)
|
@if(user.BannedUntil >= DateTime.Now.Date)
|
||||||
{
|
{
|
||||||
<td>@user.BannedUntil?.ToLongDateString()</td>
|
<td style="padding-left: 15px;">@user.BannedUntil?.ToShortDateString()</td>
|
||||||
}
|
}
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue