From 2843ddc4826f250a8af6203cff437929ab807a41 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Fri, 13 Apr 2012 09:47:27 +1000 Subject: view bans / unban --- templates/mod/view_ip.html | 73 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) (limited to 'templates') diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index 3b558e4b..a9676dd7 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -11,6 +11,79 @@ {% set redirect = '?/IP/' ~ ip %} +{% if bans|count > 0 %} +
+ Ban{% if bans|count != 1 %}s{% endif %} on record + + {% for ban in bans %} +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Status + {% if config.mod.view_banexpired and ban.expires != 0 and ban.expires < time() %} + Expired + {% else %} + Active + {% endif %} +
IP{{ ban.ip }}
Reason + {% if ban.reason %} + {{ ban.reason }} + {% else %} + no reason + {% endif %} +
Board + {% if ban.board %} + {{ config.board_abbreviation|sprintf(ban.board) }} + {% else %} + all boards + {% endif %} +
Set{{ ban.set|date(config.post_date) }}
Expires + {% if ban.expires %} + {{ ban.expires|date(config.post_date) }} + {% else %} + never + {% endif %} +
Staff + {% if ban.username %} + {{ ban.username }} + {% else %} + deleted? + {% endif %} +
+ + +
+ {% endfor %} +
+{% endif %} +
New ban {% include 'mod/ban_form.html' %} -- cgit v1.3