From a6104587203f1b1b448e6977066d6e649de91ae8 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sun, 6 May 2012 01:33:10 +1000 Subject: a lot more improvements --- templates/mod/view_ip.html | 72 ++++++++++++++++++++++++---------------------- 1 file changed, 38 insertions(+), 34 deletions(-) (limited to 'templates/mod/view_ip.html') diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index 3bc9654c..e69301fd 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -1,37 +1,38 @@ {% for board_posts in posts %}
- {{ config.board_abbreviation|sprintf(board_posts.board.uri) }} + {{ config.board_abbreviation|sprintf(board_posts.board.uri) }} - - {{ board_posts.board.title }} + {{ board_posts.board.title|e }} {{ board_posts.posts|join('
') }}
{% endfor %} {% if mod|hasPermission(config.mod.view_notes) %} -
+
- {{ notes|count }} note{% if notes|count != 1 %}s{% endif %} on record + {% set notes_on_record = 'note' ~ (notes|count != 1 ? 's' : '') ~ ' on record' %} + {{ notes|count }} {% trans notes_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 %} @@ -54,12 +57,12 @@
StaffNoteDate{% trans 'Staff' %}{% trans 'Note' %}{% trans 'Date' %}Actions{% trans 'Actions' %}
{% if note.username %} - {{ note.username }} + {{ note.username|e }} {% else %} - deleted? + {% trans 'deleted?' %} {% endif %} @@ -42,7 +43,9 @@ - [remove] + + [{% trans 'remove' %}] +
- - + + - +
Staff{{ mod.username }}{% trans 'Staff' %}{{ mod.username|e }}
- + @@ -67,7 +70,7 @@
@@ -76,73 +79,74 @@ {% endif %} {% if bans|count > 0 and mod|hasPermission(config.mod.view_ban) %} -
- Ban{% if bans|count != 1 %}s{% endif %} on record +
+ {% set bans_on_record = 'ban' ~ (bans|count != 1 ? 's' : '') ~ ' on record' %} + {{ bans|count }} {% trans bans_on_record %} {% for ban in bans %}
- + - + - + - + - + - + - +
Status{% trans 'Status' %} {% if config.mod.view_banexpired and ban.expires != 0 and ban.expires < time() %} - Expired + {% trans 'Expired' %} {% else %} - Active + {% trans 'Active' %} {% endif %}
IP{% trans 'IP' %} {{ ban.ip }}
Reason{% trans 'Reason' %} {% if ban.reason %} {{ ban.reason }} {% else %} - no reason + {% trans 'no reason' %} {% endif %}
Board{% trans 'Board' %} {% if ban.board %} {{ config.board_abbreviation|sprintf(ban.board) }} {% else %} - all boards + {% trans 'all boards' %} {% endif %}
Set{% trans 'Set' %} {{ ban.set|date(config.post_date) }}
Expires{% trans 'Expires' %} {% if ban.expires %} {{ ban.expires|date(config.post_date) }} {% else %} - never + {% trans 'never' %} {% endif %}
Staff{% trans 'Staff' %} {% if ban.username %} - {{ ban.username }} + {{ ban.username|e }} {% else %} - deleted? + {% trans 'deleted?' %} {% endif %}
- +
{% endfor %}
@@ -150,8 +154,8 @@ {% if mod|hasPermission(config.mod.ban) %}
- New ban - {% set redirect = '?/IP/' ~ ip %} + {% trans 'New ban' %} + {% set redirect = '?/IP/' ~ ip ~ '#bans' %} {% include 'mod/ban_form.html' %}
{% endif %} -- cgit v1.3