clean up report dropdown
This commit is contained in:
parent
ed1032415e
commit
7b3ddd58c6
@ -24,7 +24,7 @@
|
||||
else if (match.MatchValue == "punisher")
|
||||
{
|
||||
<span class="text-highlight">
|
||||
<a class="link-inverse" href="@Model.PunisherClientId">
|
||||
<a asp-action="Profile" asp-controller="Client" asp-route-id="@Model.PunisherClientId">
|
||||
<color-code value="@Model.PunisherName"></color-code>
|
||||
</a>
|
||||
</span>
|
||||
|
@ -7,10 +7,10 @@
|
||||
<div class="content-title">Recent Reports</div>
|
||||
<div class="text-muted">Last 24 hours</div>
|
||||
|
||||
@foreach (var server in Model)
|
||||
@foreach (var server in Model.Where(server => server.Reports.Any()))
|
||||
{
|
||||
<div class="rounded bg-very-dark-dm bg-light-ex-lm mt-10 mb-10 p-10">
|
||||
<h5 class="mt-0 text-truncate">
|
||||
<h5 class="mt-0 mb-5 text-truncate">
|
||||
<color-code value="@server.Name"></color-code>
|
||||
</h5>
|
||||
@foreach (var report in server.Reports.OrderByDescending(report => report.ReportedOn))
|
||||
|
Loading…
Reference in New Issue
Block a user