Skip to content

Commit

Permalink
Merge pull request #569 from sprunk/patch-45
Browse files Browse the repository at this point in the history
Improve report log
  • Loading branch information
Licho1 committed Apr 1, 2015
2 parents 75e4740 + 642d459 commit fd337bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Zero-K.info/Views/Users/ReportLog.cshtml
Expand Up @@ -8,12 +8,13 @@

<h2>Reports</h2>
<table>
@foreach (var report in new ZkDataContext().AbuseReports.Where(x => x.Time > weekAgo).OrderBy(x => x.Time).ToList())
@foreach (var report in new ZkDataContext().AbuseReports.Where(x => x.Time > weekAgo).OrderByDescending(x => x.Time).ToList())
{
<tr>
<td> Report on @Html.PrintAccount(new ZkDataContext().Accounts.Single(x => x.AccountID == report.AccountID)) </td>
<td> @report.Time </td>
<td> On @Html.PrintAccount(new ZkDataContext().Accounts.Single(x => x.AccountID == report.AccountID)) </td>
<td> By @Html.PrintAccount(new ZkDataContext().Accounts.Single(x => x.AccountID == report.ReporterAccountID)) </td>
<td> @report.Text </td>
<td> @Html.BBCode(report.Text) </td>
</tr>
}
</table>

0 comments on commit fd337bd

Please sign in to comment.