2019-04-06 22:48:49 -04:00
|
|
|
@model SharedLibraryCore.Dtos.ServerInfo
|
2018-02-21 20:29:23 -05:00
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
|
|
|
|
2019-07-24 11:36:37 -04:00
|
|
|
<div class="row server-header pt-1 pb-1 bg-primary " id="server_header_@Model.ID">
|
2019-04-07 21:14:59 -04:00
|
|
|
<div class="col-md-4 text-center text-md-left d-inline-flex justify-content-center justify-content-md-start">
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@Model.Name"></color-code>
|
|
|
|
<a href="@Model.ConnectProtocolUrl" class="ml-2 mr-2 align-self-center d-none d-md-flex server-join-button" title="@Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_HOME_JOIN_DESC"]">
|
2019-07-24 11:36:37 -04:00
|
|
|
<span class="oi oi-play-circle mr-1 align-self-center"></span>
|
2019-04-08 13:29:48 -04:00
|
|
|
<span class="server-header-ip-address" style="display:none;">@Model.IPAddress</span>
|
2019-04-07 21:14:59 -04:00
|
|
|
</a>
|
2019-07-13 21:45:25 -04:00
|
|
|
@if (ViewBag.Authorized)
|
|
|
|
{
|
2022-01-22 13:49:12 -05:00
|
|
|
<span class="oi oi-chat align-self-center profile-action d-none d-md-flex mr-2" data-action="chat" data-action-id="@Model.ID"></span>
|
2019-07-13 21:45:25 -04:00
|
|
|
}
|
2022-01-22 13:49:12 -05:00
|
|
|
<a asp-controller="Server" asp-action="Scoreboard" asp-fragment="server_@Model.ID" title="@ViewBag.Localization["WEBFRONT_TITLE_SCOREBOARD"]"
|
|
|
|
class="align-self-center d-none d-md-flex">
|
|
|
|
<span class="oi oi-spreadsheet ml-1"></span>
|
|
|
|
</a>
|
2019-04-07 21:14:59 -04:00
|
|
|
</div>
|
2019-07-13 21:45:25 -04:00
|
|
|
|
2021-06-30 11:44:43 -04:00
|
|
|
<div class="text-center col-md-4 align-self-center">
|
2021-06-30 10:57:07 -04:00
|
|
|
<span>@Model.Map</span>
|
|
|
|
@if (!string.IsNullOrEmpty(Model.GameType) && Model.GameType.Length > 1)
|
|
|
|
{
|
|
|
|
<span>–</span>
|
2021-11-28 11:17:56 -05:00
|
|
|
<span>@Model.GameType</span>
|
2021-06-30 10:57:07 -04:00
|
|
|
}
|
|
|
|
</div>
|
2021-06-30 11:44:43 -04:00
|
|
|
<div class="text-center text-md-right col-md-4 d-flex align-self-center justify-content-center justify-content-md-end flex-column-reverse flex-sm-row">
|
2021-06-30 10:57:07 -04:00
|
|
|
@if (Model.LobbyZScore != null)
|
|
|
|
{
|
|
|
|
<div title="@ViewBag.Localization["WEBFRONT_HOME_RATING_DESC"]" class="cursor-help d-flex flex-row-reverse flex-md-row justify-content-center">
|
|
|
|
<span>@(Model.LobbyZScore ?? 0)</span>
|
|
|
|
<span class="oi oi-bolt align-self-center mr-1 ml-1"></span>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
<div>
|
|
|
|
<span class="server-clientcount">@Model.ClientCount</span>/<span class="server-maxclients">@Model.MaxClients</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-13 21:45:25 -04:00
|
|
|
|
|
|
|
@if (ViewBag.Authorized)
|
|
|
|
{
|
2022-01-22 13:49:12 -05:00
|
|
|
<div class="p-1 d-flex d-md-none justify-content-center col-12">
|
2019-07-24 11:36:37 -04:00
|
|
|
<span class="oi oi-chat align-self-center profile-action d-flex d-md-none" data-action="chat" data-action-id="@Model.ID"></span>
|
2019-07-13 21:45:25 -04:00
|
|
|
</div>
|
|
|
|
}
|
2022-01-22 13:49:12 -05:00
|
|
|
<a asp-controller="Server" asp-action="Scoreboard" title="@ViewBag.Localization["WEBFRONT_TITLE_SCOREBOARD"]"
|
|
|
|
class="p-1 d-flex d-md-none justify-content-center col-12">
|
|
|
|
<span class="oi oi-spreadsheet ml-1"></span>
|
|
|
|
</a>
|
2018-02-21 20:29:23 -05:00
|
|
|
</div>
|
|
|
|
|
2021-06-30 10:57:07 -04:00
|
|
|
<div id="server_clientactivity_@Model.ID" class="bg-dark row server-activity @(Model.ClientCount > 0 ? "pt-2 pb-2" : "")">
|
2019-04-07 21:14:59 -04:00
|
|
|
@await Html.PartialAsync("../Server/_ClientActivity", Model)
|
2018-02-21 20:29:23 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row server-history mb-4">
|
2021-08-29 14:10:10 -04:00
|
|
|
<div class="server-history-row" id="server_history_@Model.ID" data-serverid="@Model.ID"
|
|
|
|
data-clienthistory='@Html.Raw(Json.Serialize(Model.PlayerHistory))'
|
|
|
|
data-clienthistory-ex='@Html.Raw(Json.Serialize(Model.ClientCountHistory))'
|
|
|
|
data-online="@Model.Online"></div>
|
2021-11-28 11:17:56 -05:00
|
|
|
</div>
|