2012-04-13 02:41:30 +02:00
|
|
|
<table class="modlog">
|
|
|
|
<tr>
|
2015-02-20 07:58:30 +01:00
|
|
|
<th>{% trans 'Username' %}</th>
|
2012-05-05 17:33:10 +02:00
|
|
|
<th>{% trans 'IP address' %}</th>
|
|
|
|
<th>{% trans 'Time' %}</th>
|
|
|
|
<th>{% trans 'Board' %}</th>
|
|
|
|
<th>{% trans 'Action' %}</th>
|
2012-04-13 02:41:30 +02:00
|
|
|
</tr>
|
2013-10-26 13:26:08 +02:00
|
|
|
{% for log in logs if log.text != 'Looked at dashboard' %}
|
2012-04-13 12:48:37 +02:00
|
|
|
<tr>
|
|
|
|
<td class="minimal">
|
2012-05-05 17:33:10 +02:00
|
|
|
{% if log.username %}
|
2015-02-26 02:21:49 +01:00
|
|
|
{% if hide_names %}
|
|
|
|
<em>hidden</em>
|
2015-02-20 07:58:30 +01:00
|
|
|
{% else %}
|
2015-02-26 02:21:49 +01:00
|
|
|
{% if not mod|hasPermission(config.mod.modlog) %}
|
2015-05-29 19:07:47 +02:00
|
|
|
<a href="{{ config.root }}mod.php?/new_PM/{{ log.username|e }}">{{ log.username|e }}</a>
|
2015-02-26 02:21:49 +01:00
|
|
|
{% else %}
|
|
|
|
<a href="?/log:{{ log.username|e }}">{{ log.username|e }}</a>
|
|
|
|
{% endif %}
|
2015-02-20 07:58:30 +01:00
|
|
|
{% endif %}
|
2012-05-05 17:33:10 +02:00
|
|
|
{% elseif log.mod == -1 %}
|
|
|
|
<em>system</em>
|
|
|
|
{% else %}
|
|
|
|
<em>{% trans 'deleted?' %}</em>
|
|
|
|
{% endif %}
|
2012-04-13 12:48:37 +02:00
|
|
|
</td>
|
|
|
|
<td class="minimal">
|
2013-07-31 06:04:57 +02:00
|
|
|
{% if mod|hasPermission(config.mod.show_ip_modlog) %}
|
|
|
|
<a href="?/IP/{{ log.ip }}">{{ log.ip }}</a>
|
|
|
|
{% else %}
|
|
|
|
<em>hidden</em>
|
|
|
|
{% endif %}
|
2012-04-13 12:48:37 +02:00
|
|
|
</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>
|
2012-04-13 02:41:30 +02:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2012-04-13 13:43:01 +02:00
|
|
|
{% if count > logs|count %}
|
|
|
|
<p class="unimportant" style="text-align:center;word-wrap:break-word">
|
2012-04-21 07:15:32 +02:00
|
|
|
{% for i in range(0, (count - 1) / config.mod.modlog_page) %}
|
2015-02-26 02:21:49 +01:00
|
|
|
{% 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 %}
|
2012-04-13 13:43:01 +02:00
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2012-04-13 12:57:59 +02:00
|
|
|
|