@model SharedLibraryCore.Dtos.ServerInfo @{ Layout = null; string GetMapName(string mapCode) { if (ViewBag.Maps?.Count == 0) { return mapCode; } return (ViewBag.Maps as List)?.FirstOrDefault(map => map.Name == mapCode)?.Alias ?? mapCode; } foreach (var snapshot in Model.ClientHistory.ClientCounts) { snapshot.MapAlias = GetMapName(snapshot.Map); } }
@if (ViewBag.Authorized) { }
@Model.Map @if (!string.IsNullOrEmpty(Model.GameType) && Model.GameType.Length > 1) { @Model.GameType }
@if (Model.LobbyZScore != null) {
@(Model.LobbyZScore ?? 0)
}
@Model.ClientCount/@Model.MaxClients
@if (ViewBag.Authorized) {
}
@await Html.PartialAsync("../Server/_ClientActivity", Model)