2022-05-04 23:09:46 +00:00
|
|
|
{% extends "settings2.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="overflow-x-auto"><table class="table table-striped mb-5">
|
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Ban reason</th>
|
|
|
|
<th>Banned by</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for user in users %}
|
|
|
|
<tr>
|
|
|
|
<td>{{loop.index}}</td>
|
2022-09-05 03:01:06 +00:00
|
|
|
<td>{% include "user_in_table.html" %}</td>
|
2022-05-04 23:09:46 +00:00
|
|
|
<td>{% if user.ban_reason %}{{user.ban_reason}}{% endif %}</td>
|
2022-09-05 03:01:06 +00:00
|
|
|
<td>
|
|
|
|
{% with user=user.banned_by %}
|
|
|
|
{% include "user_in_table.html" %}
|
|
|
|
{% endwith %}
|
|
|
|
</td>
|
2022-05-04 23:09:46 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{% endblock %}
|