2018-02-21 20:29:23 -05:00
|
|
|
@model SharedLibrary.Dtos.PlayerInfo
|
|
|
|
|
2018-02-22 01:06:21 -05:00
|
|
|
<div id="profile_wrapper" class="row d-flex d-sm-inline-flex justify-content-center justify-content-left pb-3">
|
2018-02-21 20:29:23 -05:00
|
|
|
<div class="mr-auto ml-auto ml-sm-0 mr-sm-0">
|
|
|
|
<div id="profile_avatar" class="mb-4 mb-md-0 text-center level-bgcolor-@Model.Level.ToLower()">
|
|
|
|
<span class="profile-shortcode">@Model.Name[0].ToString().ToUpper()</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-22 01:06:21 -05:00
|
|
|
<div id="profile_info" class="text-center text-sm-left pr-3 pl-3">
|
2018-02-21 20:29:23 -05:00
|
|
|
<div id="profile_name">
|
2018-03-06 02:22:19 -05:00
|
|
|
@{
|
|
|
|
string displayAliasButton = Model.Aliases.Count > 0 ? "" : "display: none;";
|
|
|
|
}
|
|
|
|
<h1><span class="client-name mr-4">@Model.Name<span id="profile_aliases_btn" class="oi oi-caret-bottom pl-2 @displayAliasButton"></span></span></h1>
|
2018-02-21 20:29:23 -05:00
|
|
|
<div id="profile_aliases" class="pr-0 pr-sm-4 pb-2 mb-2 text-muted">
|
|
|
|
@{
|
|
|
|
foreach (string alias in Model.Aliases)
|
|
|
|
{
|
|
|
|
@alias <br />
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-22 01:06:21 -05:00
|
|
|
<div id="profile_level" class="text-muted mb-2">
|
|
|
|
<h5><span class="level-color-@Model.Level.ToLower()"><strong>@Model.Level</strong></span></h5>
|
2018-02-21 20:29:23 -05:00
|
|
|
</div>
|
|
|
|
<div id="profile_time_played" class="text-muted">
|
|
|
|
Played <span class="text-primary">@Model.TimePlayed</span> hours
|
|
|
|
</div>
|
|
|
|
<div id="profile_first_seen" class="text-muted">
|
|
|
|
First seen <span class="text-primary">@Model.FirstSeen</span> ago
|
|
|
|
</div>
|
|
|
|
<div id="profile_last_seen" class="text-muted">
|
|
|
|
Last seen <span class="text-primary">@Model.LastSeen</span> ago
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-24 00:56:03 -05:00
|
|
|
<div id="profile_meta" class="text-center text-sm-right pt-2 mt-md-4 pt-md-3 mr-4 pr-4 mr-md-0 ml-4 pl-4 ml-md-0 pr-md-0 pl-md-0">
|
|
|
|
|
2018-02-21 20:29:23 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-24 00:56:03 -05:00
|
|
|
|
2018-02-22 01:06:21 -05:00
|
|
|
<div class="row d-md-flex pt-2">
|
2018-02-21 20:29:23 -05:00
|
|
|
<div id="profile_events" class="text-muted text-left ml-sm-0">
|
|
|
|
@{
|
|
|
|
if (Model.Meta.Count == 0)
|
|
|
|
{
|
|
|
|
<span> No recent events</span>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@section scripts {
|
|
|
|
<script>
|
|
|
|
const clientInfo = {};
|
|
|
|
clientInfo.clientId = @Model.ClientId;
|
|
|
|
clientInfo.Meta =@Html.Raw(Json.Serialize(@Model.Meta));
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="~/js/profile.js"></script>
|
|
|
|
}
|