clean up some more translations
This commit is contained in:
parent
2fca68a7ea
commit
77d25890da
@ -210,7 +210,7 @@ namespace WebfrontCore.Controllers
|
||||
|
||||
ViewBag.SearchTerm = clientName;
|
||||
ViewBag.ResultCount = clientsDto.Count;
|
||||
ViewBag.Title = "Search Results";
|
||||
ViewBag.Title = Localization["WEBFRONT_SEARCH_RESULTS_TITLE"];
|
||||
|
||||
return View("Find/Index", clientsDto);
|
||||
}
|
||||
|
@ -221,7 +221,7 @@ namespace IW4MAdmin.Plugins.Web.StatsWeb.Controllers
|
||||
{
|
||||
return View("~/Views/Client/_MessageContext.cshtml", new List<MessageResponse>
|
||||
{
|
||||
new MessageResponse()
|
||||
new()
|
||||
{
|
||||
ClientId = penalty.OffenderId,
|
||||
Message = penalty.AutomatedOffense,
|
||||
|
@ -4,7 +4,7 @@
|
||||
<h2 class="content-title mt-20 mb-10">@ViewBag.Title</h2>
|
||||
@if (!Model.Any())
|
||||
{
|
||||
<div class="text-muted mb-10">Search for records...</div>
|
||||
<div class="text-muted mb-10">@ViewBag.Localization["WEBFRONT_BAN_MGMT_SUBTITLE"]</div>
|
||||
}
|
||||
<form method="get" class="mt-10">
|
||||
<div class="d-flex flex-column flex-md-row">
|
||||
|
@ -5,9 +5,8 @@
|
||||
|
||||
<!-- desktop -->
|
||||
<div class="content mt-0">
|
||||
<h2 class="content-title mt-20 mb-0">@ViewBag.Localization["WEBFRONT_SEARCH_RESULTS_TITLE"]</h2>
|
||||
<h2 class="content-title mt-20 mb-0">@loc["WEBFRONT_SEARCH_RESULTS_TITLE"]</h2>
|
||||
<div class="text-muted mb-15">
|
||||
|
||||
@foreach (var match in Utilities.SplitTranslationTokens("WEBFRONT_SEARCH_RESULTS_SUBTITLE_FORMAT"))
|
||||
{
|
||||
if (match.IsInterpolation)
|
||||
|
@ -24,7 +24,7 @@
|
||||
<color-code value="@(message.ServerName ?? "--")"></color-code>
|
||||
</td>
|
||||
<td colspan="15%" class="text-right text-break">
|
||||
@message.When
|
||||
@message.When.ToStandardFormat()
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
<div>
|
||||
<color-code value="@(message.ServerName ?? "--")"></color-code>
|
||||
</div>
|
||||
<div>@message.When</div>
|
||||
<div>@message.When.ToStandardFormat()</div>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
@ -2,14 +2,13 @@
|
||||
<div class="content mt-0">
|
||||
<h4 class="content-title mt-20">@ViewBag.Title</h4>
|
||||
|
||||
|
||||
@foreach (var key in Model.Keys)
|
||||
{
|
||||
<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>@ViewBag.Localization["WEBFRONT_CONTEXT_MENU_GLOBAL_GAME"]</th>
|
||||
<th class="text-right font-weight-bold">@ViewBag.Localization["WEBFRONT_SEARCH_LAST_CONNECTED"]</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -41,7 +41,6 @@
|
||||
{
|
||||
<color-code value="@Model.Offense"></color-code>
|
||||
}
|
||||
|
||||
</span>
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,5 @@
|
||||
}
|
||||
</div>
|
||||
}
|
||||
<!-- </div> -->
|
||||
}
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<h2 class="content-title mb-0">@ViewBag.Localization["WEBFRONT_TOP_PLAYERS_TITLE"]</h2>
|
||||
<span class="text-muted">
|
||||
<color-code value="@(Model.FirstOrDefault(m => m.Endpoint == ViewBag.SelectedServerId)?.Name ?? ViewBag.Localization["WEBFRONT_STATS_INDEX_ALL_SERVERS"])"></color-code>
|
||||
— <span class="text-primary">@ViewBag.TotalRankedClients.ToString("#,##0")</span> Ranked Players
|
||||
— <span class="text-primary">@ViewBag.TotalRankedClients.ToString("#,##0")</span> @ViewBag.Localization["WEBFRONT_TOP_PLAYERS_SUBTITLE"]
|
||||
</span>
|
||||
|
||||
<div id="topPlayersContainer">
|
||||
|
@ -13,7 +13,7 @@
|
||||
<div class="position-absolute bg-danger rounded-circle ml-10" style="width: 0.5em;height: 0.5em;top: 0;"></div>
|
||||
<div class="dropdown-menu dropdown-menu-right w-250 w-md-400" aria-labelledby="alert-toggle">
|
||||
<div class="d-flex">
|
||||
<h6 class="dropdown-header">@ViewBag.Alerts.Count Alerts</h6>
|
||||
<h6 class="dropdown-header">@((ViewBag.Localization["WEBFRONT_ALERTS_POPOVER_COUNT"] as string).FormatExt((int)ViewBag.Alerts.Count))</h6>
|
||||
<i class="oi oi-circle-x font-size-12 text-danger align-self-center profile-action" data-action="DismissAllAlerts" data-action-id="@ViewBag.User.ClientId"></i>
|
||||
</div>
|
||||
<div class="dropdown-divider"></div>
|
||||
@ -42,7 +42,7 @@
|
||||
<div class="font-size-12 p-5">
|
||||
<span class="text-force-break">@alert.Message</span>
|
||||
<div class="text-muted d-flex">
|
||||
<span>@alert.OccuredAt.Humanize()</span>
|
||||
<span>@alert.OccuredAt.HumanizeForCurrentCulture()</span>
|
||||
@if (!string.IsNullOrEmpty(alert.Source))
|
||||
{
|
||||
<span class="ml-5 mr-5">•</span>
|
||||
|
@ -136,7 +136,6 @@
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
|
||||
<partial name="_LeftNavBar"/>
|
||||
|
@ -29,7 +29,7 @@
|
||||
$('#console_command_response').append(`<div class="text-danger">${escapeHtml(item)}</div>`);
|
||||
})
|
||||
} else {
|
||||
$('#console_command_response').append(`<div class="text-danger">Could not execute command...</div>`);
|
||||
$('#console_command_response').append(`<div class="text-danger">${_localization['WEBFRONT_SCRIPT_CONSOLE_ERROR']}</div>`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user