summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Admin/Logs.cshtml
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Views/Admin/Logs.cshtml')
-rw-r--r--Project-Unite/Views/Admin/Logs.cshtml25
1 files changed, 25 insertions, 0 deletions
diff --git a/Project-Unite/Views/Admin/Logs.cshtml b/Project-Unite/Views/Admin/Logs.cshtml
new file mode 100644
index 0000000..3fa066d
--- /dev/null
+++ b/Project-Unite/Views/Admin/Logs.cshtml
@@ -0,0 +1,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 &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> \ No newline at end of file