blob: b4e6825ad52883ebb5634d0ef95bb51488df67f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
@model IEnumerable<Project_Unite.Models.AuditLog>
@{
ViewBag.Admin = true;
ViewBag.Title = "Audit logs";
}
<h2>Audit logs</h2>
<p>Below is a list of all actions carried out by all users on this site.</p>
<table class="table">
<tr>
<th style="width:65%">Action</th>
<th>User & Timestamp</th>
<th>Level</th>
</tr>
@foreach(var i in Model.OrderByDescending(x=>x.Timestamp))
{
<tr>
<td>@Html.Raw(i.Description)</td>
<td>@Html.UserLink(i.UserId) at @i.Timestamp</td>
<td>@i.Level</td>
</tr>
}
</table>
|