summaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-04 15:45:15 +0100
committerDan McGee <dan@archlinux.org>2011-03-10 17:49:11 +0100
commit1dc867587da6b66ca575eb26f4f65cb9d67ffdb3 (patch)
treece95e80d3e51e26f8ffaa6b522c3a18f13993bd4 /templates/admin
parent3e73b5d7d291b20858b18ba7492b7f92501e01c7 (diff)
downloadarchweb-1dc867587da6b66ca575eb26f4f65cb9d67ffdb3.tar.gz
archweb-1dc867587da6b66ca575eb26f4f65cb9d67ffdb3.tar.xz
Add Admin log overview page
This puts the admin log functionality to a bit more use and allows seeing the last 100 overall entries. You can also drill down to see actions on a per-user basis. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/index.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html
index 6f7f98e..93cf258 100644
--- a/templates/admin/index.html
+++ b/templates/admin/index.html
@@ -14,10 +14,18 @@
<div class="module">
<table>
<caption>Custom Admin Pages</caption>
+ {% if perms.auth.add_user %}
<tr>
<th scope="row"><a href="/devel/newuser/">Create New User</a></th>
<td></td><td></td>
</tr>
+ {% endif %}
+ {% if user.is_superuser %}
+ <tr>
+ <th scope="row"><a href="/devel/admin_log/">Admin Actions Log</a></th>
+ <td></td><td></td>
+ </tr>
+ {% endif %}
</table>
</div>