From 7f6f836bf85350fe92d3975d2fb3973343923aeb Mon Sep 17 00:00:00 2001 From: Michael Save Date: Fri, 13 Apr 2012 10:41:30 +1000 Subject: IP notes --- templates/mod/view_ip.html | 80 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 73 insertions(+), 7 deletions(-) (limited to 'templates/mod/view_ip.html') diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index a9676dd7..3bc9654c 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -9,9 +9,73 @@ {% endfor %} -{% set redirect = '?/IP/' ~ ip %} +{% if mod|hasPermission(config.mod.view_notes) %} +
+ + {{ notes|count }} note{% if notes|count != 1 %}s{% endif %} on record + + + {% if notes|count > 0 %} + + + + + + {% if mod|hasPermission(config.mod.remove_notes) %} + + {% endif %} + + {% for note in notes %} + + + + + {% if mod|hasPermission(config.mod.remove_notes) %} + + {% endif %} + + {% endfor %} +
StaffNoteDateActions
+ {% if note.username %} + {{ note.username }} + {% else %} + deleted? + {% endif %} + + {{ note.body }} + + {{ note.time|date(config.post_date) }} + + [remove] +
+ {% endif %} + + {% if mod|hasPermission(config.mod.create_notes) %} +
+ + + + + + + + + + + + + +
Staff{{ mod.username }}
+ + + +
+
+ {% endif %} +
+{% endif %} -{% if bans|count > 0 %} +{% if bans|count > 0 and mod|hasPermission(config.mod.view_ban) %}
Ban{% if bans|count != 1 %}s{% endif %} on record @@ -84,8 +148,10 @@
{% endif %} -
- New ban - {% include 'mod/ban_form.html' %} -
- +{% if mod|hasPermission(config.mod.ban) %} +
+ New ban + {% set redirect = '?/IP/' ~ ip %} + {% include 'mod/ban_form.html' %} +
+{% endif %} -- cgit v1.3