@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); } }
@Utilities.MakeAbbreviation(ViewBag.Localization[$"GAME_{Model.Game}"])
@Model.Map @if (!string.IsNullOrEmpty(Model.GameType) && Model.GameType.Length > 1) { @Model.GameType }
@if (Model.LobbyZScore != null) {
@(Model.LobbyZScore ?? 0)
}
@Model.ClientCount/@(Model.MaxClients - Model.PrivateClientSlots)@(Model.PrivateClientSlots > 0 ? $" ({Model.MaxClients})": "")
@if (Model.Players.Any()) {

}