diff options
| author | 8chan <admin@8chan.co> | 2015-02-25 17:21:49 -0800 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-06 15:44:26 +0200 |
| commit | 7911c374e86ef8fa69c4545867b9d9d3de12d5c6 (patch) | |
| tree | 217ac7d32eff8acfaa6b08991dc792750edcedc3 /templates | |
| parent | 6dd1420f91410531bb2dac506f821d959bf74d0a (diff) | |
Public action logs commit (log.php)
Note: In a previous commit, I began making inc/mod/auth.php more modular with the check_login() function. Including it does NOT check mod login by default anymore like it does on vichan. You have to call check_login(). I've finally included it in inc/functions.php. If you have any custom pages that use inc/mod/auth.php, just including functions.php is enough now.
===================================
Also: backports 351375185e5 (early 404)
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/mod/log.html | 16 |
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 }}&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 %} |
