lainchan/templates/mod/log.html

64 lines
1.7 KiB
HTML
Raw Permalink Normal View History

2012-04-12 20:41:30 -04:00
<table class="modlog">
<tr>
2012-05-05 11:33:10 -04:00
<th>{% trans 'Staff' %}</th>
<th>{% trans 'IP address' %}</th>
<th>{% trans 'Time' %}</th>
<th>{% trans 'Board' %}</th>
<th>{% trans 'Action' %}</th>
2012-04-12 20:41:30 -04:00
</tr>
{% for log in logs %}
2012-04-13 06:48:37 -04:00
<tr>
<td class="minimal">
2012-05-05 11:33:10 -04:00
{% if log.username %}
{% 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 %}
2012-05-05 11:33:10 -04:00
{% elseif log.mod == -1 %}
<em>system</em>
{% else %}
<em>{% trans 'deleted?' %}</em>
{% endif %}
2012-04-13 06:48:37 -04:00
</td>
<td class="minimal">
{% if mod|hasPermission(config.mod.show_ip_modlog) %}
<a href="?/IP/{{ log.ip }}">{{ log.ip }}</a>
{% else %}
<em>hidden</em>
{% endif %}
2012-04-13 06:48:37 -04: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-12 20:41:30 -04:00
{% endfor %}
</table>
2012-04-13 07:43:01 -04:00
{% if count > logs|count %}
<p class="unimportant" style="text-align:center;word-wrap:break-word">
2012-04-21 01:15:32 -04:00
{% for i in range(0, (count - 1) / config.mod.modlog_page) %}
{% 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 %}
2012-04-13 07:43:01 -04:00
{% endfor %}
</p>
{% endif %}
2012-04-13 06:57:59 -04:00