1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-18 02:16:03 +01:00
vichan/templates/mod/view_ip.html

149 lines
4.1 KiB
HTML
Raw Normal View History

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) }}
2021-02-13 14:11:41 +01:00
-
2012-05-20 12:20:50 +02:00
{{ 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>
2023-03-29 23:59:28 +02:00
{% set notes_length = notes|length %}
<legend>{{ notes_length }} {% trans %}note on record{% plural notes_length %}notes on record{% endtrans %}</legend>
2012-04-13 02:41:30 +02:00
</legend>
2021-02-13 14:11:41 +01:00
2023-03-29 23:59:28 +02:00
{% if notes|length > 0 %}
2012-04-13 02:41:30 +02:00
<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">
2021-02-13 14:11:41 +01:00
<a href="?/IP/{{ ip|cloak_ip|url_encode(true) }}/remove_note/{{ note.id }}">
2012-05-05 17:33:10 +02:00
<small>[{% trans 'remove' %}]</small>
</a>
2012-04-13 02:41:30 +02:00
</td>
{% endif %}
</tr>
{% endfor %}
</table>
{% endif %}
2021-02-13 14:11:41 +01:00
2012-04-13 02:41:30 +02:00
{% 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
2021-03-12 21:51:42 +01:00
2023-03-29 23:59:28 +02:00
{% if bans|length > 0 and mod|hasPermission(config.mod.view_ban) %}
2012-05-05 17:33:10 +02:00
<fieldset id="bans">
2023-03-29 23:59:28 +02:00
{% set bans_length = bans|length %}
<legend>{{ bans_length }} {% trans %}ban on record{% plural notes_length %}bans on record{% endtrans %}</legend>
2021-02-13 14:11:41 +01:00
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 }}">
{% include 'mod/ban_history.html' %}
2012-04-13 01:47:27 +02:00
<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' %}">
<input type="submit" name="edit_ban" value="{% trans 'Edit 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>
2021-02-13 14:11:41 +01:00
{% set redirect = '?/IP/' ~ ip|cloak_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
2023-03-29 23:59:28 +02:00
{% if logs|length > 0 %}
2013-03-16 08:27:24 +01:00
<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 %}