1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

add server categorization feature (issue #77)

This commit is contained in:
RaidMax
2020-04-13 20:26:13 -05:00
parent 6054289a58
commit 296411a5be
6 changed files with 43 additions and 12 deletions

View File

@ -19,7 +19,23 @@
</div>
</div>
@await Component.InvokeAsync("ServerList")
@if (Model.ActiveServerGames.Length > 1)
{
<ul class="nav nav-tabs border-top border-bottom nav-fill row mb-4" role="tablist">
<li class="nav-item">
<a class="nav-link @(Model.Game.HasValue ? "" : "active")" href="/" role="tab" aria-selected="true">@loc["GAME_ALL"]</a>
</li>
@foreach (var gameName in Model.ActiveServerGames)
{
<li class="nav-item">
<a asp-action="Index" asp-controller="Home" asp-route-game="@gameName" class="nav-link @(Model.Game == gameName ? "active" : "")" role="tab" aria-selected="false">@loc[$"GAME_{gameName}"]</a>
</li>
}
</ul>
}
@await Component.InvokeAsync("ServerList", Model.Game)
@section scripts {
<environment include="Development">