clean up report dropdown

This commit is contained in:
RaidMax 2022-04-22 15:14:23 -05:00
parent ed1032415e
commit 7b3ddd58c6
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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))