@model SharedLibrary.Dtos.PlayerInfo @{ string match = System.Text.RegularExpressions.Regex.Match(Model.Name.ToUpper(), "[A-Z]").Value; string shortCode = match == string.Empty ? "?" : match; string marginClass = Model.Aliases.Count > 0 ? "mr-4" : ""; }
@shortCode

@Model.Name @if (Model.Aliases.Count > 0 || ViewBag.Authorized) { } @{ if (ViewBag.Authorized) { if (Model.Level == SharedLibrary.Objects.Player.Permission.User.ToString()) { } if (Model.Level == SharedLibrary.Objects.Player.Permission.Banned.ToString()) { } } }

@{ foreach (string alias in Model.Aliases) { @alias
} if (ViewBag.Authorized) { foreach (string ip in Model.IPs) { @ip
} } }
@Model.Level
Played @Model.TimePlayed hours
First seen @Model.FirstSeen ago
Last seen @Model.LastSeen ago
@{ if (Model.Meta.Count == 0) { No recent events } }
@section targetid { } @section scripts { }