cleaned up sites
This commit is contained in:
parent
6d4c39c49d
commit
435914d79e
3 changed files with 7 additions and 14 deletions
|
@ -5,25 +5,19 @@
|
||||||
@inject UserService UserService
|
@inject UserService UserService
|
||||||
|
|
||||||
|
|
||||||
<h3>UserOverview</h3>
|
<h3>Role Edit</h3>
|
||||||
|
|
||||||
|
|
||||||
<AuthorizeView Policy="@Constants.Roles.Admin">
|
<AuthorizeView Policy="@Constants.Roles.Admin">
|
||||||
<Authorized>
|
<Authorized>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>GW2 Account</th>
|
|
||||||
<th>Banned Until</th>
|
|
||||||
</tr>
|
|
||||||
<h5>Roles</h5>
|
|
||||||
@foreach(LiebRole role in _roles)
|
@foreach(LiebRole role in _roles)
|
||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td>@if(!role.IsSystemRole)
|
<td>@if(!role.IsSystemRole)
|
||||||
{
|
{
|
||||||
<button type=button @onclick="() => DeleteRoleClicked(role)">Create Role</button>
|
<button type=button @onclick="() => DeleteRoleClicked(role)">Delete Role</button>
|
||||||
}</td>
|
}</td>
|
||||||
<td>@role.RoleName</td>
|
<td>@role.RoleName</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -28,11 +28,10 @@
|
||||||
</Authorized>
|
</Authorized>
|
||||||
</AuthorizeView>
|
</AuthorizeView>
|
||||||
|
|
||||||
<label>Equipped Builds</label>
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th>Role Name</th>
|
<th>Role</th>
|
||||||
<th>IsSystemRole</th>
|
<th>IsSystemRole</th>
|
||||||
</tr>
|
</tr>
|
||||||
@foreach (LiebRole role in _roles)
|
@foreach (LiebRole role in _roles)
|
||||||
|
|
|
@ -38,22 +38,22 @@
|
||||||
HashSet<LiebUser> foundUsers = new HashSet<LiebUser>();
|
HashSet<LiebUser> foundUsers = new HashSet<LiebUser>();
|
||||||
if(_bannedOnly)
|
if(_bannedOnly)
|
||||||
{
|
{
|
||||||
foreach(LiebUser user in _users.Where(u => u.Name.Contains(_searchString) && u.BannedUntil > DateTime.Now))
|
foreach(LiebUser user in _users.Where(u => u.Name.Contains(_searchString, StringComparison.OrdinalIgnoreCase) && u.BannedUntil > DateTime.Now))
|
||||||
{
|
{
|
||||||
foundUsers.Add(user);
|
foundUsers.Add(user);
|
||||||
}
|
}
|
||||||
foreach(LiebUser user in _users.Where(u => u.GuildWars2Accounts.Where(a => a.AccountName.Contains(_searchString)).Any() && u.BannedUntil > DateTime.Now))
|
foreach(LiebUser user in _users.Where(u => u.GuildWars2Accounts.Where(a => a.AccountName.Contains(_searchString, StringComparison.OrdinalIgnoreCase)).Any() && u.BannedUntil > DateTime.Now))
|
||||||
{
|
{
|
||||||
foundUsers.Add(user);
|
foundUsers.Add(user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
foreach(LiebUser user in _users.Where(u => u.Name.Contains(_searchString)))
|
foreach(LiebUser user in _users.Where(u => u.Name.Contains(_searchString, StringComparison.OrdinalIgnoreCase)))
|
||||||
{
|
{
|
||||||
foundUsers.Add(user);
|
foundUsers.Add(user);
|
||||||
}
|
}
|
||||||
foreach(LiebUser user in _users.Where(u => u.GuildWars2Accounts.Where(a => a.AccountName.Contains(_searchString)).Any()))
|
foreach(LiebUser user in _users.Where(u => u.GuildWars2Accounts.Where(a => a.AccountName.Contains(_searchString, StringComparison.OrdinalIgnoreCase)).Any()))
|
||||||
{
|
{
|
||||||
foundUsers.Add(user);
|
foundUsers.Add(user);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue