From ad55a634bf3f9301489f5371942c73940361a24c Mon Sep 17 00:00:00 2001 From: Michael Save Date: Mon, 16 Apr 2012 16:40:24 +1000 Subject: various improvements --- templates/mod/ban_list.html | 74 +++++++++++++++++++++++++++++++++++++++++++++ templates/mod/new_pm.html | 4 +-- templates/mod/pm.html | 41 +++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 2 deletions(-) create mode 100644 templates/mod/ban_list.html create mode 100644 templates/mod/pm.html (limited to 'templates') diff --git a/templates/mod/ban_list.html b/templates/mod/ban_list.html new file mode 100644 index 00000000..00b8a0f4 --- /dev/null +++ b/templates/mod/ban_list.html @@ -0,0 +1,74 @@ +{% if bans|count == 0 %} +

(There are no active bans.)

+{% else %} +
+ + + + + + + + + + {% for ban in bans %} + + + + + + + + + {% endfor %} +
{% trans %}IP address{% endtrans %}{% trans %}Reason{% endtrans %}{% trans %}Board{% endtrans %}{% trans %}Set{% endtrans %}{% trans %}Expires{% endtrans %}{% trans %}Staff{% endtrans %}
+ + {% if ban.real_ip %} + {{ ban.ip }} + {% else %} + {{ ban.ip|e }} + {% endif %} + + {% if ban.reason %} + {{ ban.reason }} + {% else %} + - + {% endif %} + + {% if ban.board %} + {{ config.board_abbreviation|sprintf(ban.board) }} + {% else %} + {% trans %}all boards{% endtrans %} + {% endif %} + + {{ ban.set|date(config.post_date) }} + + {% if ban.expires == 0 %} + never + {% else %} + {{ ban.expires|date(config.post_date) }} + {% if ban.expires > time() %} + ({{ ban.expires|until }}) + {% endif %} + {% endif %} + + {% if ban.username %} + {% if mod|hasPermission(config.mod.view_banstaff) %} + {{ ban.username|e }} + {% else %} + {% if mod|hasPermission(config.mod.view_banquestionmark) %} + ? + {% else %} + + {% endif %} + {% endif %} + {% else %} + deleted? + {% endif %} +
+ +

+ +

+
+{% endif %} diff --git a/templates/mod/new_pm.html b/templates/mod/new_pm.html index d694bc26..ece1325c 100644 --- a/templates/mod/new_pm.html +++ b/templates/mod/new_pm.html @@ -2,7 +2,7 @@ {% set username = 'me' %} {% endif %}#} -
+ @@ -14,7 +14,7 @@ - +
To
Message
diff --git a/templates/mod/pm.html b/templates/mod/pm.html new file mode 100644 index 00000000..511bcfef --- /dev/null +++ b/templates/mod/pm.html @@ -0,0 +1,41 @@ + + + + + {% if username %} + + {% else %} + + {% endif %} + + {% if to != mod.id %} + + + {% if to_username %} + + {% else %} + + {% endif %} + + {% endif %} + + + + + + + + +
From{{ username|e }}deleted?
To{{ to_username|e }}deleted?
Date{{ time|date(config.post_date) }}
Message{{ message }}
+ + +
-- cgit v1.3