summaryrefslogtreecommitdiff
path: root/templates/mod/log.html
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-08-27 02:28:04 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-08-27 02:28:04 +1000
commit6a705fd8c2324b642ac6bfc660d76cff6d5eab62 (patch)
tree7f916bebf46f66ed55569ea1456686524aebc192 /templates/mod/log.html
parent1dcb385e9e3791d2d3c1d049fe9b8d906539088e (diff)
parentc919e7362542117f613c2800017ae89c269a07b5 (diff)
Merge branch 'mod-rewrite'
Conflicts: inc/lib/Twig/Extensions/Extension/Tinyboard.php install.php mod.php stylesheets/style.css templates/index.html templates/page.html templates/thread.html
Diffstat (limited to 'templates/mod/log.html')
-rw-r--r--templates/mod/log.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/templates/mod/log.html b/templates/mod/log.html
new file mode 100644
index 00000000..dca1b2d0
--- /dev/null
+++ b/templates/mod/log.html
@@ -0,0 +1,47 @@
+<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 logs %}
+ <tr>
+ <td class="minimal">
+ {% if log.username %}
+ <a href="?/new_PM/{{ 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>
+
+{% if count > logs|count %}
+ <p class="unimportant" style="text-align:center;word-wrap:break-word">
+ {% for i in range(0, (count - 1) / config.mod.modlog_page) %}
+ <a href="?/log/{{ i + 1 }}">[{{ i + 1 }}]</a>
+ {% endfor %}
+ </p>
+{% endif %}
+