@model SharedLibraryCore.Dtos.PlayerInfo @{ string match = System.Text.RegularExpressions.Regex.Match(Model.Name.ToUpper(), "[A-Z]").Value; string shortCode = match == string.Empty ? "?" : match; var loc = SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex; string gravatarUrl = Model.Meta.FirstOrDefault(m => m.Key == "GravatarEmail")?.Value; }
@if (string.IsNullOrEmpty(gravatarUrl)) { @shortCode }
@if (Model.Online) { } else { }
@Model.Name
@{ if (ViewBag.Authorized) {
@if (Model.LevelInt != -1) { } @if (Model.LevelInt < (int)ViewBag.User.Level && !Model.HasActivePenalty) { } @if (Model.LevelInt < (int)ViewBag.User.Level && Model.HasActivePenalty) { }
@{ foreach (var linked in Model.LinkedAccounts) { @Html.ActionLink(linked.Value.ToString("X"), "ProfileAsync", "Client", new { id = linked.Key }, new { @class = "link-inverse" })
} foreach (string alias in Model.Aliases) { @alias
} if (ViewBag.Authorized) { foreach (string ip in Model.IPs) { @ip
} } }
} }
@Model.Level
@loc["WEBFRONT_PROFILE_PLAYER"] @Model.TimePlayed @loc["GLOBAL_TIME_HOURS"]
@loc["WEBFRONT_PROFILE_FSEEN"] @Model.FirstSeen @loc["WEBFRONT_PENALTY_TEMPLATE_AGO"]
@loc["WEBFRONT_PROFILE_LSEEN"] @Model.LastSeen @loc["WEBFRONT_PENALTY_TEMPLATE_AGO"]
@Model.ConnectionCount @loc["WEBFRONT_CLIENT_META_CONNECTIONS"]
@section targetid { } @section scripts { }