@page "/s/{id}" @using CsWeb.Services @model ServerModel @{ var s = Model.Status!; var d = s.Data; var title = d?.Hostname is { Length: > 0 } h ? h : Model.Id; ViewData["Title"] = title; var ogDesc = d is null ? "Outnumbered CS2 server" : $"{Fmt.ModeName(d.Mode)} on {d.Map} — {d.Humans.Count}/{d.MaxHumans} players, {d.Bots} bots." + (Fmt.ExtraLine(d) is { Length: > 0 } ex ? $" {ex}." : ""); } @section Meta { }

@title

@Fmt.ModeName(d?.Mode) @if (!s.Online) { @Fmt.Age(s) }

@if (d is null) {
This server hasn't reported yet. If it just started, give it a few seconds.
} else {

Map @d.Map · @d.Humans.Count/@d.MaxHumans players · @d.Bots bots @if (Fmt.ExtraLine(d) is { Length: > 0 } extra) { · @extra }

@if (d.Port > 0) {

Join now   or paste in console: connect @Model.Fleet.PublicHost:@d.Port

} @if (d.Humans.Count > 0) {

Players

@if (d.Mode == "gungame") { } @foreach (var p in d.Humans) { @if (d.Mode == "gungame") { } }
NameLevelPrestige KDStreakWeapon
@p.Name@p.Level@p.Prestige @p.Kills@p.Deaths@p.Streak@(Fmt.RungWeapon(d, p) ?? "—")
} else {

Nobody in game right now — free server, all yours.

} }