@model IEnumerable @using WebfrontCore.ViewModels

@ViewBag.Localization["WEBFRONT_TOP_PLAYERS_TITLE"]

@ViewBag.TotalRankedClients.ToString("#,##0") @ViewBag.Localization["WEBFRONT_TOP_PLAYERS_SUBTITLE"]
@await Component.InvokeAsync("TopPlayers", new { count = 25, offset = 0, serverEndpoint = ViewBag.SelectedServerId })
@{ var menuItems = new SideContextMenuItems { MenuTitle = ViewBag.Localization["WEBFRONT_CONTEXT_MENU_GLOBAL_GAME"], Items = Model.Select(server => new SideContextMenuItem { IsLink = true, Reference = Url.Action("TopPlayers", "Stats", new { serverId = server.Endpoint }), Title = server.Name.StripColors(), IsActive = ViewBag.SelectedServerId == server.Endpoint }).Prepend(new SideContextMenuItem { IsLink = true, Reference = Url.Action("TopPlayers", "Stats"), Title = ViewBag.Localization["WEBFRONT_STATS_INDEX_ALL_SERVERS"], IsActive = ViewBag.SelectedServerId is null }).ToList() }; }
@section scripts { }