From b776e0a7f005846d80716febc12f8cdf40d1d149 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sat, 20 Jul 2013 12:05:42 -0400 Subject: Search update --- templates/mod/search_form.html | 9 ++++--- templates/mod/search_results.html | 52 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 56 insertions(+), 5 deletions(-) (limited to 'templates/mod') diff --git a/templates/mod/search_form.html b/templates/mod/search_form.html index c74121fd..d8a2fed4 100644 --- a/templates/mod/search_form.html +++ b/templates/mod/search_form.html @@ -2,12 +2,15 @@ diff --git a/templates/mod/search_results.html b/templates/mod/search_results.html index 84de8969..b441a28f 100644 --- a/templates/mod/search_results.html +++ b/templates/mod/search_results.html @@ -41,7 +41,6 @@ {% endif %} - {% if search_type == 'bans' %} @@ -126,4 +125,53 @@ {% endfor %}
-{% endif %} \ No newline at end of file +{% endif %} + +{% if search_type == 'log' %} + + + + + + + + + {% for log in results %} + + + + + + + + {% endfor %} +
{% trans 'Staff' %}{% trans 'IP address' %}{% trans 'Time' %}{% trans 'Board' %}{% trans 'Action' %}
+ {% if log.username %} + {{ log.username|e }} + {% elseif log.mod == -1 %} + system + {% else %} + {% trans 'deleted?' %} + {% endif %} + + {{ log.ip }} + + {{ log.time|ago }} + + {% if log.board %} + {{ config.board_abbreviation|sprintf(log.board) }} + {% else %} + - + {% endif %} + + {{ log.text }} +
+{% endif %} + +{% if result_count > results|count %} +

+ {% for i in range(0, (result_count - 1) / config.mod.search_page) %} + [{{ i + 1 }}] + {% endfor %} +

+{% endif %} \ No newline at end of file -- cgit v1.3