@model SharedLibrary.Dtos.PlayerInfo @{ string match = System.Text.RegularExpressions.Regex.Match(Model.Name.ToUpper(), "[A-Z]").Value; string shortCode = match == string.Empty ? "?" : match; }
@shortCode
@Model.Name
@{ if (ViewBag.Authorized) {
@if (Model.LevelInt < (int)ViewBag.User.Level && (SharedLibrary.Objects.Player.Permission)Model.LevelInt != SharedLibrary.Objects.Player.Permission.Banned) { } @if (Model.LevelInt < (int)ViewBag.User.Level && (SharedLibrary.Objects.Player.Permission)Model.LevelInt == SharedLibrary.Objects.Player.Permission.Banned) { }
@{ 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 { }