order report servers by most recent report
This commit is contained in:
parent
4534d24fe6
commit
5ab5b73ecf
@ -7,7 +7,7 @@
|
||||
<div class="content-title">Recent Reports</div>
|
||||
<div class="text-muted">Last 24 hours</div>
|
||||
|
||||
@foreach (var server in Model.Where(server => server.Reports.Any()))
|
||||
@foreach (var server in Model.Where(server => server.Reports.Any()).OrderByDescending(server => server.Reports.Max(report => report.ReportedOn)))
|
||||
{
|
||||
<div class="rounded bg-very-dark-dm bg-light-ex-lm mt-10 mb-10 p-10">
|
||||
<h5 class="mt-0 mb-5 text-truncate">
|
||||
|
Loading…
Reference in New Issue
Block a user