@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 { }
@Fmt.ModeName(d?.Mode) @if (!s.Online) { @Fmt.Age(s) }
@if (d is null) {
Map @d.Map · @d.Humans.Count/@d.MaxHumans players · @d.Bots bots
@if (Fmt.ExtraLine(d) is { Length: > 0 } extra) { · @extra }
Join now or paste in console: connect @Model.Fleet.PublicHost:@d.Port
} @if (d.Humans.Count > 0) {| Name | Level | Prestige | K | D | Streak | @if (d.Mode == "gungame") {Weapon | }
|---|---|---|---|---|---|---|
| @p.Name | @p.Level | @p.Prestige | @p.Kills | @p.Deaths | @p.Streak | @if (d.Mode == "gungame") {@(Fmt.RungWeapon(d, p) ?? "—") | }
Nobody in game right now — free server, all yours.
} }