migrated to ASP.Net Core
This commit is contained in:
24
WebfrontCore/Views/Penalty/List.cshtml
Normal file
24
WebfrontCore/Views/Penalty/List.cshtml
Normal file
@ -0,0 +1,24 @@
|
||||
<h3 class="pb-2 text-center ">@ViewBag.Title</h3>
|
||||
<div class="row">
|
||||
<table class="table table-striped">
|
||||
<thead class="d-none d-md-table-header-group">
|
||||
<tr class="bg-primary pt-2 pb-2">
|
||||
<th scope="col">Name</th>
|
||||
<th scope="col">Type</th>
|
||||
<th scope="col">Offense</th>
|
||||
<th scope="col">Admin</th>
|
||||
<th scope="col" class="text-right">Time/Left</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="penalty_table" class="border-bottom bg-dark">
|
||||
@await Component.InvokeAsync("PenaltyList", new { offset = 0 })
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table d-table d-md-none">
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@section scripts {
|
||||
<script type="text/javascript" src="~/js/penalty.js"></script>
|
||||
}
|
7
WebfrontCore/Views/Penalty/_List.cshtml
Normal file
7
WebfrontCore/Views/Penalty/_List.cshtml
Normal file
@ -0,0 +1,7 @@
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@model int
|
||||
|
||||
@await Component.InvokeAsync("PenaltyList", new { offset = Model })
|
77
WebfrontCore/Views/Penalty/_Penalty.cshtml
Normal file
77
WebfrontCore/Views/Penalty/_Penalty.cshtml
Normal file
@ -0,0 +1,77 @@
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@model SharedLibrary.Dtos.PenaltyInfo
|
||||
|
||||
<tr class="d-table-row d-md-none bg-dark">
|
||||
<th scope="row" class="bg-primary">Name</th>
|
||||
<td>
|
||||
@Html.ActionLink(Model.OffenderName, "ProfileAsync", "Client", new { id = Model.OffenderId }, new { @class = "link-inverse" })
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="d-table-row d-md-none bg-dark">
|
||||
<th scope="row" class="bg-primary">Type</th>
|
||||
<td class="penalties-color-@Model.Type.ToLower()">
|
||||
@Model.Type
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="d-table-row d-md-none bg-dark">
|
||||
<th scope="row" class="bg-primary">Offense</th>
|
||||
<td class="text-light">
|
||||
@Model.Offense
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="d-table-row d-md-none bg-dark">
|
||||
<th scope="row" class="bg-primary">Admin</th>
|
||||
<td>
|
||||
@Html.ActionLink(Model.PunisherName, "ProfileAsync", "Client", new { id = Model.PunisherId }, new { @class = "link-inverse" })
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="d-table-row d-md-none bg-dark">
|
||||
<th scope="row" class="w-25 bg-primary" style="border-bottom: 1px solid #222">Time/Left</th>
|
||||
<td class="text-light mb-2 border-bottom">
|
||||
@{
|
||||
if (Model.TimeRemaining == string.Empty)
|
||||
{
|
||||
<span>@Model.TimePunished ago</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span> @Model.TimeRemaining left</span>
|
||||
}
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr class="d-none d-md-table-row">
|
||||
<td>
|
||||
@Html.ActionLink(Model.OffenderName, "ProfileAsync", "Client", new { id = Model.OffenderId }, new { @class = "link-inverse" })
|
||||
</td>
|
||||
<td class="penalties-color-@Model.Type.ToLower()">
|
||||
@Model.Type
|
||||
</td>
|
||||
<td class="text-light">
|
||||
@Model.Offense
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink(Model.PunisherName, "ProfileAsync", "Client", new { id = Model.PunisherId }, new { @class = "link-inverse" })
|
||||
</td>
|
||||
<td class="text-right text-light">
|
||||
@{
|
||||
if (Model.TimeRemaining == string.Empty)
|
||||
{
|
||||
<span>@Model.TimePunished ago</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span> @Model.TimeRemaining left</span>
|
||||
}
|
||||
}
|
||||
</td>
|
||||
</tr>
|
Reference in New Issue
Block a user