2013-01-25 12:18:03 +01:00
|
|
|
<table class="modlog">
|
|
|
|
<tr>
|
|
|
|
<th>Time</th>
|
|
|
|
<th>Board</th>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Thread</th>
|
|
|
|
<th>IP</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Subject</th>
|
|
|
|
<th>File</th>
|
|
|
|
<th>Body (snippet)</th>
|
|
|
|
</tr>
|
|
|
|
{% for post in posts %}
|
|
|
|
<tr>
|
|
|
|
<td class="minimal">
|
2013-01-25 12:23:26 +01:00
|
|
|
<small>{{ post.time | ago }} ago</small>
|
2013-01-25 12:18:03 +01:00
|
|
|
</td>
|
|
|
|
<td class="minimal">
|
|
|
|
<a href="?/{{ config.board_path|sprintf(post.board) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(post.board) }}</a>
|
|
|
|
</td>
|
|
|
|
<td class="minimal" >
|
|
|
|
{% if post.thread %}
|
|
|
|
{% set thread = post.thread %}
|
|
|
|
{% else %}
|
|
|
|
{% set thread = post.id %}
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ config.root ~ post.board ~ '/' ~ config.dir.res}}{{ config.file_page|sprintf(thread) }}#{{ post.id }}">
|
|
|
|
{{ post.id }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="minimal">
|
2013-01-25 12:23:26 +01:00
|
|
|
<small>
|
|
|
|
{% if post.thread %}
|
|
|
|
{{ post.thread }}
|
|
|
|
{% else %}
|
|
|
|
(OP)
|
|
|
|
{% endif %}
|
|
|
|
</small>
|
2013-01-25 12:18:03 +01:00
|
|
|
</td>
|
|
|
|
<td class="minimal">
|
2013-01-25 12:23:26 +01:00
|
|
|
{% if mod|hasPermission(config.mod.show_ip, post.board) %}
|
|
|
|
<a href="?/IP/{{ post.ip }}">
|
|
|
|
{{ post.ip }}
|
2013-01-25 12:18:03 +01:00
|
|
|
</a>
|
2013-01-25 12:23:26 +01:00
|
|
|
{% else %}
|
|
|
|
<em>hidden</em>
|
2013-01-25 12:18:03 +01:00
|
|
|
{% endif %}
|
2013-01-25 12:23:26 +01:00
|
|
|
</td>
|
|
|
|
<td class="minimal" >
|
|
|
|
<small>
|
|
|
|
{% if post.email|length > 0 %}
|
|
|
|
{# start email #}
|
|
|
|
<a class="email" href="mailto:{{ post.email }}">
|
|
|
|
{% endif %}
|
|
|
|
{% set capcode = post.capcode|capcode %}
|
|
|
|
<span {% if capcode.name %}style="{{ capcode.name }}" {% endif %}class="name">{{ post.name }}</span>
|
|
|
|
{% if post.trip|length > 0 %}
|
|
|
|
<span {% if capcode.trip %}style="{{ capcode.trip }}" {% endif %}class="trip">{{ post.trip }}</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if post.email|length > 0 %}
|
|
|
|
{# end email #}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if capcode %}
|
|
|
|
{{ capcode.cap }}
|
|
|
|
{% endif %}
|
|
|
|
</small>
|
2013-01-25 12:18:03 +01:00
|
|
|
</td>
|
|
|
|
<td class="minimal" >
|
|
|
|
{% if post.subject %}
|
2013-01-25 12:23:26 +01:00
|
|
|
<small>{{ post.subject }}</small>
|
2013-01-25 12:18:03 +01:00
|
|
|
{% else %}
|
|
|
|
–
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td class="minimal">
|
|
|
|
{% if post.file %}
|
2013-01-25 12:23:26 +01:00
|
|
|
<small>{{ post.file }} ({{ post.filesize | filesize }})</small>
|
2013-01-25 12:18:03 +01:00
|
|
|
{% else %}
|
|
|
|
–
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
2013-01-25 12:23:26 +01:00
|
|
|
<small><em>{{ post.snippet }}</em></small>
|
2013-01-25 12:18:03 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|