From 1dedf5deaed5099affbc3785536ddd4efa534fcb Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 19 May 2012 21:00:15 +1000 Subject: [PATCH] ban list formatting changes --- templates/mod/ban_list.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/templates/mod/ban_list.html b/templates/mod/ban_list.html index 4a27b8f7..e46d816d 100644 --- a/templates/mod/ban_list.html +++ b/templates/mod/ban_list.html @@ -4,10 +4,11 @@
- + + @@ -37,14 +38,22 @@ +
{% trans 'IP address' %}{% trans 'IP address/mask' %} {% trans 'Reason' %} {% trans 'Board' %} {% trans 'Set' %}{% trans 'Duration' %} {% trans 'Expires' %} {% trans 'Staff' %}
{{ ban.set|date(config.post_date) }} + ({{ ban.set|ago }} ago) + + {% if ban.expires == 0 %} + - + {% else %} + {{ (ban.expires - ban.set + time()) | until }} + {% endif %} {% if ban.expires == 0 %} {% trans 'never' %} {% else %} - {{ ban.expires|date(config.post_date) }} + {{ ban.expires|date(config.post_date) }} {% if ban.expires > time() %} - ({{ ban.expires|until }}) + ({{ ban.expires|until }}) {% endif %} {% endif %}