@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); }; string MakeAbbreviation(string gameName) => string.Join("", gameName.Split(' ').Select(word => char.ToUpper(word.First())).ToArray()); }
@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
@if (Model.Players.Any()) {

}