@model SharedLibraryCore.Dtos.IW4MAdminInfo @{ var loc = SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex; string formatTranslation(string translationKey, params object[] values) { var split = loc[translationKey].Split("::"); return split.Count() == 2 ? $"{SharedLibraryCore.Utilities.FormatExt(split[0], values)}{split[1]}" : translationKey; } }
@Html.Raw(formatTranslation("WEBFRONT_HOME_CLIENTS_ONLINE", Model.TotalOccupiedClientSlots, Model.TotalAvailableClientSlots))
@Html.Raw(formatTranslation("WEBFRONT_HOME_MAX_CONCURRENT_CLIENTS", Model.MaxConcurrentClients.ToString("#,##0")))
@Html.Raw(formatTranslation("WEBFRONT_HOME_RECENT_CLIENTS", Model.RecentClientCount.ToString("#,##0")))
@Html.Raw(formatTranslation("WEBFRONT_HOME_TOTAL_CLIENTS", Model.TotalClientCount.ToString("#,##0")))
@if (Model.ActiveServerGames.Length > 1) { } @await Component.InvokeAsync("ServerList", Model.Game) @section scripts { }