@using WebfrontCore.ViewModels @model IEnumerable
@if (Model is not null) {
@await Html.PartialAsync("_Scoreboard", Model.FirstOrDefault(server => server.ServerId == ViewBag.SelectedServerId) ?? Model.First())
}
@{ var menuItems = new SideContextMenuItems { MenuTitle = "Server", Items = Model.Select(server => new SideContextMenuItem { IsLink = true, Reference = Url.Action("Scoreboard", "Server", new { serverId = server.ServerId }), Title = server.ServerName.StripColors(), IsActive = ViewBag.SelectedServerId == server.ServerId }).ToList() }; }
@section scripts { }