MarseyWorld/files/templates/banned.html

38 lines
1016 B
HTML
Raw Normal View History

{% extends "settings2.html" %}
{% block pagetitle %}Banned Users{% endblock %}
2022-05-04 23:09:46 +00:00
{% block content %}
<h5 class="font-weight-bolder text-center pt-2 pb-3"><span>Banned Users</span></h5>
2022-05-04 23:09:46 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
2022-12-10 10:40:34 +00:00
<th>#</th>
<th>Name</th>
{% if v and v.admin_level >= PERMS['VIEW_LAST_ACTIVE'] -%}
2022-12-10 10:40:34 +00:00
<th>Last Active</th>
{%- endif %}
2022-12-10 10:40:34 +00:00
<th>Truescore</th>
<th>Ban reason</th>
<th>Banned by</th>
<th>Unban in</th>
2022-05-04 23:09:46 +00:00
</tr>
</thead>
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
2022-12-11 16:24:15 +00:00
<td>{% include "user_in_table.html" %}</td>
{% if v and v.admin_level >= PERMS['VIEW_LAST_ACTIVE'] -%}
2022-12-10 10:40:34 +00:00
<td {% if user.last_active %}data-time="{{user.last_active}}"{% endif %}></td>
{%- endif %}
<td>{{user.truescore}}</td>
2023-08-10 15:38:11 +00:00
<td>{{user.ban_reason | safe}}</td>
<td>{{user.banned_by | safe}}</td>
2022-12-10 10:40:34 +00:00
<td {% if user.unban_utc %}data-time="{{user.unban_utc}}"{% endif %}></td>
2022-05-04 23:09:46 +00:00
</tr>
{% endfor %}
</table>
2022-12-10 10:40:34 +00:00
2022-05-04 23:09:46 +00:00
{% endblock %}