forked from rDrama/rDrama
fix
parent
0262bb2467
commit
62babbd9b9
|
@ -25,28 +25,42 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<table class="w-full table table-striped mt-6">
|
||||
<thead class="bg-primary text-white">
|
||||
<div class="col-span-full my-2 px-2.5 md:px-0">
|
||||
{% if users %}
|
||||
<table class="w-full table table-striped mt-6">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th scope="col" class="p-2.5">#</th>
|
||||
<th scope="col" class="p-2.5">Name</th>
|
||||
<th scope="col" class="p-2.5">Shadowbanned by</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for user in users %}
|
||||
<tr>
|
||||
<th scope="col" class="p-2.5">#</th>
|
||||
<th scope="col" class="p-2.5">Name</th>
|
||||
<th scope="col" class="p-2.5">Shadowbanned by</th>
|
||||
<td class="px-2.5 font-bold">{{loop.index}}</td>
|
||||
<td class="px-2.5">
|
||||
<a style="color:#{{user.namecolor}}; font-weight:bold;" href="/@{{user.username}}">
|
||||
<img loading="lazy" src="/uid/{{user.id}}/pic" class="pp20">
|
||||
<span {% if user.patron %}class="patron" style="background-color:#{{user.namecolor}};"{% endif %}>{{user.username}}</span>
|
||||
</a>
|
||||
</td>
|
||||
<td class="px-2.5 font-bold">
|
||||
{{user.shadowbanned}}
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for user in users %}
|
||||
<tr>
|
||||
<td class="px-2.5 font-bold">{{loop.index}}</td>
|
||||
<td class="px-2.5">
|
||||
<a style="color:#{{user.namecolor}}; font-weight:bold;" href="/@{{user.username}}">
|
||||
<img loading="lazy" src="/uid/{{user.id}}/pic" class="pp20">
|
||||
<span {% if user.patron %}class="patron" style="background-color:#{{user.namecolor}};"{% endif %}>{{user.username}}</span>
|
||||
</a>
|
||||
</td>
|
||||
<td class="px-2.5 font-bold">
|
||||
{{user.shadowbanned}}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="flex flex-col items-center justify-center py-24 md:py-48">
|
||||
<img loading="lazy" src="https://c.tenor.com/NhDy-AkelhQAAAAM/marsey-drama.gif" class="w-20 h-20 mb-4 rounded-md object-cover">
|
||||
<h2 class="text-xl font-bold leading-normal font-heading">No shadow banned users</h2>
|
||||
<p class="text-gray-500 text-sm">
|
||||
When a mod shadow bans someone, it will show up here.
|
||||
</p>
|
||||
<a href="/admin" class="mt-3 btn btn-gray">
|
||||
Go to admin dashboard
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue