summaryrefslogtreecommitdiff
path: root/templates/mod/log.html
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2016-09-25 16:34:47 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2016-09-25 16:34:47 +0900
commita3b9c4405c6d4cca2a70dbb400e3ba3f65e7ea04 (patch)
tree5a2ebdb801748586e3fde7c12cbeda169b2c3e31 /templates/mod/log.html
parent9436524a306c8e3d6d8a6ed195e2a3c56d5cde39 (diff)
parenta4b619ae5eaab5755dc215a496854dee8f7ce395 (diff)
Merged lainchan with vichan master at 25/9/2016 a4b619ae5eaab5755dc215a496854dee8f7ce395 @czaks czaks committed on GitHub 2 days ago
Diffstat (limited to 'templates/mod/log.html')
-rw-r--r--templates/mod/log.html16
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/mod/log.html b/templates/mod/log.html
index 0aa3f110..a38b4af5 100644
--- a/templates/mod/log.html
+++ b/templates/mod/log.html
@@ -10,7 +10,15 @@
<tr>
<td class="minimal">
{% if log.username %}
- <a href="?/log:{{ log.username|e }}">{{ log.username|e }}</a>
+ {% if hide_names %}
+ <em>hidden</em>
+ {% else %}
+ {% if not mod|hasPermission(config.mod.modlog) %}
+ <a href="?/new_PM/{{ log.username|e }}">{{ log.username|e }}</a>
+ {% else %}
+ <a href="?/log:{{ log.username|e }}">{{ log.username|e }}</a>
+ {% endif %}
+ {% endif %}
{% elseif log.mod == -1 %}
<em>system</em>
{% else %}
@@ -44,7 +52,11 @@
{% 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{% if username %}:{{ username }}{% endif %}/{{ i + 1 }}">[{{ i + 1 }}]</a>
+ {% if public %}
+ <a href="?page={{ i + 1 }}&amp;board={{ board|url_encode }}">[{{ i + 1 }}]</a>
+ {% else %}
+ <a href="?/log{% if username %}:{{ username }}{% elseif board %}:b:{{ board }}{% endif %}/{{ i + 1 }}">[{{ i + 1 }}]</a>
+ {% endif %}
{% endfor %}
</p>
{% endif %}