2020-11-11 18:31:26 -05:00
|
|
|
@model IList<SharedLibraryCore.Dtos.PlayerInfo>
|
2019-03-31 20:56:31 -04:00
|
|
|
@{
|
2021-03-22 12:09:25 -04:00
|
|
|
var loc = Utilities.CurrentLocalization.LocalizationIndex;
|
2018-05-05 18:52:04 -04:00
|
|
|
}
|
2018-02-21 20:29:23 -05:00
|
|
|
|
2022-04-19 19:43:58 -04:00
|
|
|
<!-- desktop -->
|
|
|
|
<div class="content mt-0">
|
2022-07-05 13:42:17 -04:00
|
|
|
<h2 class="content-title mt-20 mb-0">@loc["WEBFRONT_SEARCH_RESULTS_TITLE"]</h2>
|
2022-07-05 13:02:43 -04:00
|
|
|
<div class="text-muted mb-15">
|
|
|
|
@foreach (var match in Utilities.SplitTranslationTokens("WEBFRONT_SEARCH_RESULTS_SUBTITLE_FORMAT"))
|
|
|
|
{
|
|
|
|
if (match.IsInterpolation)
|
|
|
|
{
|
|
|
|
if (match.MatchValue == "searchTerm")
|
|
|
|
{
|
|
|
|
<span class="badge">
|
|
|
|
@ViewBag.SearchTerm
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (match.MatchValue == "searchCount")
|
|
|
|
{
|
|
|
|
<span class="text-primary">@ViewBag.ResultCount</span>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<span>@match.MatchValue</span>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
2018-02-21 20:29:23 -05:00
|
|
|
|
2022-04-19 19:43:58 -04:00
|
|
|
<table class="table d-none d-md-table">
|
|
|
|
<thead>
|
|
|
|
<tr class="bg-primary text-light">
|
|
|
|
<td>@loc["WEBFRONT_PENALTY_TEMPLATE_NAME"]</td>
|
|
|
|
<td>@loc["WEBFRONT_PROFILE_LEVEL"]</td>
|
|
|
|
<td class="text-right">@loc["WEBFRONT_SEARCH_LAST_CONNECTED"]</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-03-31 20:56:31 -04:00
|
|
|
@foreach (var client in Model)
|
2018-02-21 20:29:23 -05:00
|
|
|
{
|
2022-04-19 19:43:58 -04:00
|
|
|
<tr class="bg-dark-dm bg-light-lm">
|
|
|
|
<td class="col-5">
|
|
|
|
<a asp-controller="Client" asp-action="Profile" asp-route-id="@client.ClientId">
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@client.Name"></color-code>
|
2019-08-02 19:04:34 -04:00
|
|
|
</a>
|
2022-04-19 19:43:58 -04:00
|
|
|
</td>
|
2021-01-09 13:37:20 -05:00
|
|
|
@if (!ViewBag.Authorized && ViewBag.EnablePrivilegedUserPrivacy)
|
|
|
|
{
|
2022-04-19 19:43:58 -04:00
|
|
|
<td class="col-3 level-color-0">@loc["GLOBAL_PERMISSION_USER"]</td>
|
2021-01-09 13:37:20 -05:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2022-04-19 19:43:58 -04:00
|
|
|
<td class="col-3 level-color-@client.LevelInt">@client.Level</td>
|
2021-01-09 13:37:20 -05:00
|
|
|
}
|
2022-04-19 19:43:58 -04:00
|
|
|
<td class="col-4 text-right">@client.LastConnection.HumanizeForCurrentCulture()</td>
|
|
|
|
</tr>
|
2018-02-21 20:29:23 -05:00
|
|
|
}
|
2022-04-19 19:43:58 -04:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<!--- mobile -->
|
|
|
|
<table class="table bg-dark-dm bg-light-lm d-md-none">
|
|
|
|
<tbody>
|
|
|
|
@foreach (var client in Model)
|
|
|
|
{
|
|
|
|
<tr class="d-flex">
|
|
|
|
<td class="bg-primary text-light">
|
|
|
|
<div>@loc["WEBFRONT_PENALTY_TEMPLATE_NAME"]</div>
|
|
|
|
<div>@loc["WEBFRONT_PROFILE_LEVEL"]</div>
|
|
|
|
<div>@loc["WEBFRONT_SEARCH_LAST_CONNECTED"]</div>
|
|
|
|
</td>
|
|
|
|
<td class="flex-grow">
|
|
|
|
<a asp-controller="Client" asp-action="Profile" asp-route-id="@client.ClientId" class="link-inverse">
|
|
|
|
<color-code value="@client.Name"></color-code>
|
|
|
|
</a>
|
|
|
|
@if (!ViewBag.Authorized && ViewBag.EnablePrivilegedUserPrivacy)
|
|
|
|
{
|
|
|
|
<div class="p-2 level-color-0">@loc["GLOBAL_PERMISSION_USER"]</div>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<div class="p-2 level-color-@client.LevelInt">@client.Level</div>
|
|
|
|
}
|
|
|
|
<div>@client.LastConnection.HumanizeForCurrentCulture()</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
2022-01-22 13:49:12 -05:00
|
|
|
</div>
|