IW4M-Admin/WebfrontCore/Views/Penalty/_Penalty.cshtml

81 lines
3.0 KiB
Plaintext
Raw Normal View History

2018-02-21 20:29:23 -05:00
@{
Layout = null;
var loc = SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex;
2018-02-21 20:29:23 -05:00
}
2018-04-08 02:44:42 -04:00
@model SharedLibraryCore.Dtos.PenaltyInfo
2018-02-21 20:29:23 -05:00
<tr class="d-table-row d-lg-none bg-dark">
<th scope="row" class="bg-primary">@loc["WEBFRONT_PENALTY_TEMPLATE_NAME"]</th>
2018-02-21 20:29:23 -05:00
<td>
2019-08-02 19:04:34 -04:00
<a asp-controller="Client" asp-action="ProfileAsync" asp-route-id="@Model.OffenderId" class="link-inverse">
<color-code value="@Model.OffenderName" allow="@ViewBag.EnableColorCodes"></color-code>
</a>
2018-02-21 20:29:23 -05:00
</td>
</tr>
<tr class="d-table-row d-lg-none bg-dark">
2019-03-30 18:21:01 -04:00
<th scope="row" class="bg-primary">@loc["WEBFRONT_PENALTY_TEMPLATE_TYPE"]</th>
<td class="penalties-color-@Model.PenaltyTypeText.ToLower()">
@Model.PenaltyType
2018-02-21 20:29:23 -05:00
</td>
</tr>
<tr class="d-table-row d-lg-none bg-dark">
<th scope="row" class="bg-primary">@loc["WEBFRONT_PENALTY_TEMPLATE_OFFENSE"]</th>
2018-02-21 20:29:23 -05:00
<td class="text-light">
2019-08-02 19:04:34 -04:00
<color-code value="@($"{Model.Offense}{(ViewBag.Authorized ? Model.AdditionalPenaltyInformation : "")}")" allow="@ViewBag.EnableColorCodes"></color-code>
2018-02-21 20:29:23 -05:00
</td>
</tr>
<tr class="d-table-row d-lg-none bg-dark">
<th scope="row" class="bg-primary">@loc["WEBFRONT_PENALTY_TEMPLATE_ADMIN"]</th>
2018-02-21 20:29:23 -05:00
<td>
2019-08-02 19:04:34 -04:00
@Html.ActionLink(SharedLibraryCore.Utilities.StripColors(Model.PunisherName), "ProfileAsync", "Client", new { id = Model.PunisherId }, new { @class = "level-color-" + (int)Model.PunisherLevel })
2018-02-21 20:29:23 -05:00
</td>
</tr>
<tr class="d-table-row d-lg-none bg-dark">
<th scope="row" class="w-25 bg-primary" style="border-bottom: 1px solid #222">@loc["WEBFRONT_PENALTY_TEMPLATE_TIME"]</th>
<td class="text-light mb-2 border-bottom">
2018-02-21 20:29:23 -05:00
@{
if (Model.Expired)
2018-02-21 20:29:23 -05:00
{
<span>@Model.TimePunishedString</span>
2018-02-21 20:29:23 -05:00
}
else
{
<span>@Model.TimeRemaining</span>
2018-02-21 20:29:23 -05:00
}
}
</td>
</tr>
<tr class="d-none d-lg-table-row">
2018-02-21 20:29:23 -05:00
<td>
2019-08-02 19:04:34 -04:00
<a asp-controller="Client" asp-action="ProfileAsync" asp-route-id="@Model.OffenderId" class="link-inverse">
<color-code value="@Model.OffenderName" allow="@ViewBag.EnableColorCodes"></color-code>
</a>
2018-02-21 20:29:23 -05:00
</td>
<td class="penalties-color-@Model.PenaltyTypeText.ToLower()">
@Model.PenaltyType
2018-02-21 20:29:23 -05:00
</td>
<td class="text-light w-50">
2019-08-02 19:04:34 -04:00
<color-code value="@($"{Model.Offense}{(ViewBag.Authorized ? Model.AdditionalPenaltyInformation : "")}")" allow="@ViewBag.EnableColorCodes"></color-code>
2018-02-21 20:29:23 -05:00
</td>
<td>
2019-08-02 19:04:34 -04:00
@Html.ActionLink(SharedLibraryCore.Utilities.StripColors(Model.PunisherName), "ProfileAsync", "Client", new { id = Model.PunisherId }, new { @class = "level-color-" + (int)Model.PunisherLevel })
2018-02-21 20:29:23 -05:00
</td>
<td class="text-right text-light">
@{
if (Model.Expired)
2018-02-21 20:29:23 -05:00
{
<span>@Model.TimePunishedString</span>
2018-02-21 20:29:23 -05:00
}
else
{
<span>@Model.TimeRemaining</span>
2018-02-21 20:29:23 -05:00
}
}
</td>
</tr>