2012-04-13 01:29:08 +02:00
|
|
|
{% for board_posts in posts %}
|
|
|
|
<fieldset>
|
|
|
|
<legend>
|
2012-05-20 12:20:50 +02:00
|
|
|
<a href="?/{{ config.board_path|sprintf(board_posts.board.uri) }}{{ config.file_index }}">
|
|
|
|
{{ config.board_abbreviation|sprintf(board_posts.board.uri) }}
|
|
|
|
-
|
|
|
|
{{ board_posts.board.title|e }}
|
|
|
|
</a>
|
2012-04-13 01:29:08 +02:00
|
|
|
</legend>
|
|
|
|
{{ board_posts.posts|join('<hr>') }}
|
|
|
|
</fieldset>
|
|
|
|
{% endfor %}
|
|
|
|
|
2012-04-13 02:41:30 +02:00
|
|
|
{% if mod|hasPermission(config.mod.view_notes) %}
|
2012-05-05 17:33:10 +02:00
|
|
|
<fieldset id="notes">
|
2012-04-13 02:41:30 +02:00
|
|
|
<legend>
|
2012-05-05 17:33:10 +02:00
|
|
|
{% set notes_on_record = 'note' ~ (notes|count != 1 ? 's' : '') ~ ' on record' %}
|
|
|
|
<legend>{{ notes|count }} {% trans notes_on_record %}</legend>
|
2012-04-13 02:41:30 +02:00
|
|
|
</legend>
|
|
|
|
|
|
|
|
{% if notes|count > 0 %}
|
|
|
|
<table class="modlog">
|
|
|
|
<tr>
|
2012-05-05 17:33:10 +02:00
|
|
|
<th>{% trans 'Staff' %}</th>
|
|
|
|
<th>{% trans 'Note' %}</th>
|
|
|
|
<th>{% trans 'Date' %}</th>
|
2012-04-13 02:41:30 +02:00
|
|
|
{% if mod|hasPermission(config.mod.remove_notes) %}
|
2012-05-05 17:33:10 +02:00
|
|
|
<th>{% trans 'Actions' %}</th>
|
2012-04-13 02:41:30 +02:00
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% for note in notes %}
|
|
|
|
<tr>
|
|
|
|
<td class="minimal">
|
|
|
|
{% if note.username %}
|
2012-05-05 17:33:10 +02:00
|
|
|
<a href="?/new_PM/{{ note.username|e }}">{{ note.username|e }}</a>
|
2012-04-13 02:41:30 +02:00
|
|
|
{% else %}
|
2012-05-05 17:33:10 +02:00
|
|
|
<em>{% trans 'deleted?' %}</em>
|
2012-04-13 02:41:30 +02:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ note.body }}
|
|
|
|
</td>
|
|
|
|
<td class="minimal">
|
|
|
|
{{ note.time|date(config.post_date) }}
|
|
|
|
</td>
|
|
|
|
{% if mod|hasPermission(config.mod.remove_notes) %}
|
|
|
|
<td class="minimal">
|
2012-05-05 17:33:10 +02:00
|
|
|
<a href="?/IP/{{ ip }}/remove_note/{{ note.id }}">
|
|
|
|
<small>[{% trans 'remove' %}]</small>
|
|
|
|
</a>
|
2012-04-13 02:41:30 +02:00
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if mod|hasPermission(config.mod.create_notes) %}
|
|
|
|
<form action="" method="post" style="margin:0">
|
2013-09-23 08:48:56 +02:00
|
|
|
<input type="hidden" name="token" value="{{ security_token }}">
|
2012-04-13 02:41:30 +02:00
|
|
|
<table>
|
|
|
|
<tr>
|
2012-05-05 17:33:10 +02:00
|
|
|
<th>{% trans 'Staff' %}</th>
|
|
|
|
<td>{{ mod.username|e }}</td>
|
2012-04-13 02:41:30 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>
|
2012-05-05 17:33:10 +02:00
|
|
|
<label for="note">{% trans 'Note' %}</label>
|
2012-04-13 02:41:30 +02:00
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<textarea id="note" name="note" rows="5" cols="30"></textarea>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
2012-05-05 17:33:10 +02:00
|
|
|
<td><input type="submit" value="{% trans 'New note' %}"></td>
|
2012-04-13 02:41:30 +02:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
</fieldset>
|
|
|
|
{% endif %}
|
2012-04-13 01:29:08 +02:00
|
|
|
|
2012-04-13 02:41:30 +02:00
|
|
|
{% if bans|count > 0 and mod|hasPermission(config.mod.view_ban) %}
|
2012-05-05 17:33:10 +02:00
|
|
|
<fieldset id="bans">
|
|
|
|
{% set bans_on_record = 'ban' ~ (bans|count != 1 ? 's' : '') ~ ' on record' %}
|
|
|
|
<legend>{{ bans|count }} {% trans bans_on_record %}</legend>
|
2012-04-13 01:47:27 +02:00
|
|
|
|
|
|
|
{% for ban in bans %}
|
|
|
|
<form action="" method="post" style="text-align:center">
|
2013-09-23 08:48:56 +02:00
|
|
|
<input type="hidden" name="token" value="{{ security_token }}">
|
2012-04-13 01:47:27 +02:00
|
|
|
<table style="width:400px;margin-bottom:10px;border-bottom:1px solid #ddd;padding:5px">
|
|
|
|
<tr>
|
2012-05-05 17:33:10 +02:00
|
|
|
<th>{% trans 'Status' %}</th>
|
2012-04-13 01:47:27 +02:00
|
|
|
<td>
|
|
|
|
{% if config.mod.view_banexpired and ban.expires != 0 and ban.expires < time() %}
|
2012-05-05 17:33:10 +02:00
|
|
|
{% trans 'Expired' %}
|
2012-04-13 01:47:27 +02:00
|
|
|
{% else %}
|
2012-05-05 17:33:10 +02:00
|
|
|
{% trans 'Active' %}
|
2012-04-13 01:47:27 +02:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-05 17:33:10 +02:00
|
|
|
<th>{% trans 'IP' %}</th>
|
2013-09-17 01:15:24 +02:00
|
|
|
<td>{{ ban.mask }}</td>
|
2012-04-13 01:47:27 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-05 17:33:10 +02:00
|
|
|
<th>{% trans 'Reason' %}</th>
|
2012-04-13 01:47:27 +02:00
|
|
|
<td>
|
|
|
|
{% if ban.reason %}
|
|
|
|
{{ ban.reason }}
|
|
|
|
{% else %}
|
2012-05-05 17:33:10 +02:00
|
|
|
<em>{% trans 'no reason' %}</em>
|
2012-04-13 01:47:27 +02:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-05 17:33:10 +02:00
|
|
|
<th>{% trans 'Board' %}</th>
|
2012-04-13 01:47:27 +02:00
|
|
|
<td>
|
|
|
|
{% if ban.board %}
|
|
|
|
{{ config.board_abbreviation|sprintf(ban.board) }}
|
|
|
|
{% else %}
|
2012-05-05 17:33:10 +02:00
|
|
|
<em>{% trans 'all boards' %}</em>
|
2012-04-13 01:47:27 +02:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-05 17:33:10 +02:00
|
|
|
<th>{% trans 'Set' %}</th>
|
2013-09-17 01:15:24 +02:00
|
|
|
<td>{{ ban.created|date(config.post_date) }}</td>
|
2012-04-13 01:47:27 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-05 17:33:10 +02:00
|
|
|
<th>{% trans 'Expires' %}</th>
|
2012-04-13 01:47:27 +02:00
|
|
|
<td>
|
|
|
|
{% if ban.expires %}
|
|
|
|
{{ ban.expires|date(config.post_date) }}
|
|
|
|
{% else %}
|
2012-05-05 17:33:10 +02:00
|
|
|
<em>{% trans 'never' %}</em>
|
2012-04-13 01:47:27 +02:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2013-07-16 14:50:39 +02:00
|
|
|
<tr>
|
|
|
|
<th>{% trans 'Seen' %}</th>
|
|
|
|
<td>
|
|
|
|
{% if ban.seen %}
|
|
|
|
{% trans 'Yes' %}
|
|
|
|
{% else %}
|
|
|
|
{% trans 'No' %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-04-13 01:47:27 +02:00
|
|
|
<tr>
|
2012-05-05 17:33:10 +02:00
|
|
|
<th>{% trans 'Staff' %}</th>
|
2012-04-13 01:47:27 +02:00
|
|
|
<td>
|
|
|
|
{% if ban.username %}
|
2012-05-05 17:33:10 +02:00
|
|
|
{{ ban.username|e }}
|
2012-04-13 01:47:27 +02:00
|
|
|
{% else %}
|
2012-05-05 17:33:10 +02:00
|
|
|
<em>{% trans 'deleted?' %}</em>
|
2012-04-13 01:47:27 +02:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<input type="hidden" name="ban_id" value="{{ ban.id }}">
|
2012-05-05 17:33:10 +02:00
|
|
|
<input type="submit" name="unban" value="{% trans 'Remove ban' %}">
|
2012-04-13 01:47:27 +02:00
|
|
|
</form>
|
|
|
|
{% endfor %}
|
|
|
|
</fieldset>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-04-13 02:41:30 +02:00
|
|
|
{% if mod|hasPermission(config.mod.ban) %}
|
|
|
|
<fieldset>
|
2012-05-05 17:33:10 +02:00
|
|
|
<legend>{% trans 'New ban' %}</legend>
|
|
|
|
{% set redirect = '?/IP/' ~ ip ~ '#bans' %}
|
2012-04-13 02:41:30 +02:00
|
|
|
{% include 'mod/ban_form.html' %}
|
|
|
|
</fieldset>
|
|
|
|
{% endif %}
|
2013-03-16 08:27:24 +01:00
|
|
|
|
|
|
|
{% if logs|count > 0 %}
|
|
|
|
<fieldset id="history">
|
|
|
|
<legend>History</legend>
|
|
|
|
<table class="modlog" style="width:100%">
|
|
|
|
<tr>
|
|
|
|
<th>{% trans 'Staff' %}</th>
|
|
|
|
<th>{% trans 'Time' %}</th>
|
|
|
|
<th>{% trans 'Board' %}</th>
|
|
|
|
<th>{% trans 'Action' %}</th>
|
|
|
|
</tr>
|
|
|
|
{% for log in logs %}
|
|
|
|
<tr>
|
|
|
|
<td class="minimal">
|
|
|
|
{% if log.username %}
|
|
|
|
<a href="?/log:{{ log.username|e }}">{{ log.username|e }}</a>
|
|
|
|
{% elseif log.mod == -1 %}
|
|
|
|
<em>system</em>
|
|
|
|
{% else %}
|
|
|
|
<em>{% trans 'deleted?' %}</em>
|
|
|
|
{% endif %}
|
|
|
|
</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>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
{% endif %}
|