nekrochan/templates/staff/bans.html

55 řádky
2.1 KiB
HTML
Surový Normální zobrazení Historie

2023-12-11 15:18:43 +00:00
{% import "../macros/staff-nav.html" as staff_nav %}
{% extends "base.html" %}
{% block title %}Bany{% endblock %}
{% block content %}
<h1 class="title">Bany</h1>
2023-12-25 13:53:44 +00:00
{% call staff_nav::staff_nav() %}
2023-12-11 15:18:43 +00:00
<hr>
<h2>Bany</h2>
<form method="post" action="/staff/actions/remove-bans">
<div class="table-wrap">
2024-01-02 11:58:47 +00:00
<table class="data-table center">
2023-12-11 15:18:43 +00:00
<tr>
<th></th>
<th>IP</th>
<th>Nástěnka</th>
<th>Důvod</th>
<th>Udělil</th>
<th>Odvolatelný</th>
<th>Odvolání</th>
<th>Udělěn</th>
<th>Vyprší</th>
</tr>
{% for ban in bans %}
<tr>
<td><input name="bans[]" type="checkbox" value="{{ ban.id }}"></td>
2024-01-15 15:06:25 +00:00
<td title="{{ ban.ip_range }}">
{% if ban.ip_range.network() == ban.ip_range.broadcast() %}
{{ ban.ip_range.ip() }}
{% else %}
{{ ban.ip_range.network() }}-{{ ban.ip_range.broadcast() }}
{% endif %}
</td>
2023-12-11 15:18:43 +00:00
<td>{% if let Some(board) = ban.board %}/{{ board }}/{% else %}<i>Všechny</i>{% endif %}</td>
<td><div class="post-content">{{ ban.reason }}</div></td>
<td>{{ ban.issued_by }}</td>
<td>{% if ban.appealable %}Ano{% else %}Ne{% endif %}</td>
<td>{% if let Some(appeal) = ban.appeal %}<div class="post-content">{{ appeal }}</div>{% else %}-{% endif %}</td>
2024-02-18 19:25:38 +00:00
<td title="ban.{{ ban.created|czech_humantime }}">{{ ban.created|czech_datetime }}</td>
{% if let Some(expires) = ban.expires %}
<td title="{{ expires|czech_humantime }}">{{ expires|czech_datetime }}</td>
{% else %}
<td>Nikdy</td>
{% endif %}
2023-12-11 15:18:43 +00:00
</tr>
{% endfor %}
</table>
</div>
2023-12-15 19:41:51 +00:00
<input class="button" type="submit" value="Odstranit vybrané">
2023-12-11 15:18:43 +00:00
</form>
{% endblock %}