summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Moderator/Logs.cshtml
blob: bf3ed4dd4e6df7f77c9805c9ae5d4d52c4fd6c87 (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.Moderator = true;
    ViewBag.Title = "Audit logs";
}

<h2>Moderator audit logs</h2>

<p>Below is a list of all actions carried out by moderators and users that can be reviewed as evidence when investigating a guideline break.</p>

<table class="table">
    <tr>
        <th style="width:65%">Action</th>
        <th>User &amp; Timestamp</th>
        <th>Level</th>
    </tr>
    @foreach(var i in Model.OrderByDescending(x=>x.Timestamp))
    {
        <tr>
            <td>@i.Description</td>
            <td>@Html.UserLink(i.UserId) at @i.Timestamp</td>
            <td>@i.Level</td>
        </tr>
    }
</table>