summaryrefslogtreecommitdiff
path: root/templates/mod/search_results.html
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-20 12:05:42 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-20 12:05:42 -0400
commitb776e0a7f005846d80716febc12f8cdf40d1d149 (patch)
treeea4bf020913ba3e301c0711497626e632f2f0f4c /templates/mod/search_results.html
parente62b83e79c8ed3b9ddf6e7e4b8bdeedc0d319ff4 (diff)
Search update
Diffstat (limited to 'templates/mod/search_results.html')
-rw-r--r--templates/mod/search_results.html52
1 files changed, 50 insertions, 2 deletions
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 @@
</table>
{% endif %}
-
{% if search_type == 'bans' %}
<table class="modlog" style="width:100%">
<tr>
@@ -126,4 +125,53 @@
</tr>
{% endfor %}
</table>
-{% endif %} \ No newline at end of file
+{% endif %}
+
+{% if search_type == 'log' %}
+ <table class="modlog">
+ <tr>
+ <th>{% trans 'Staff' %}</th>
+ <th>{% trans 'IP address' %}</th>
+ <th>{% trans 'Time' %}</th>
+ <th>{% trans 'Board' %}</th>
+ <th>{% trans 'Action' %}</th>
+ </tr>
+ {% for log in results %}
+ <tr>
+ <td class="minimal">
+ {% if log.username %}
+ <a href="?/log:{{ log.username|e }}">{{ log.username|e }}</a>
+ {% elseif log.mod == -1 %}
+ <em>system</em>
+ {% else %}
+ <em>{% trans 'deleted?' %}</em>
+ {% endif %}
+ </td>
+ <td class="minimal">
+ <a href="?/IP/{{ log.ip }}">{{ log.ip }}</a>
+ </td>
+ <td class="minimal">
+ <span title="{{ log.time|date(config.post_date) }}">{{ log.time|ago }}</span>
+ </td>
+ <td class="minimal">
+ {% if log.board %}
+ <a href="?/{{ config.board_path|sprintf(log.board) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(log.board) }}</a>
+ {% else %}
+ -
+ {% endif %}
+ </td>
+ <td>
+ {{ log.text }}
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+{% endif %}
+
+{% if result_count > results|count %}
+ <p class="unimportant" style="text-align:center;word-wrap:break-word">
+ {% for i in range(0, (result_count - 1) / config.mod.search_page) %}
+ <a href="?/search/{{ search_type }}/{{ search_query_escaped }}/{{ i + 1 }}">[{{ i + 1 }}]</a>
+ {% endfor %}
+ </p>
+{% endif %} \ No newline at end of file