forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/templates/sub/exilees.html

36 lines
1.3 KiB
HTML
Raw Normal View History

2022-02-21 06:45:01 +00:00
{% extends "default.html" %}
{% block content %}
2022-02-22 14:00:22 +00:00
<pre>
</pre>
2022-03-09 02:04:37 +00:00
<h5>Users exiled from /h/{{sub.name}}</h5>
2022-02-21 06:45:01 +00:00
<pre></pre>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
2022-02-24 12:03:28 +00:00
<th>#</th>
<th>Name</th>
<th>Exiled by</th>
2022-03-09 01:44:53 +00:00
<th></th>
2022-02-21 06:45:01 +00:00
</tr>
</thead>
2022-02-22 13:43:17 +00:00
{% for user, exile in users %}
2022-02-21 06:45:01 +00:00
<tr>
2022-02-22 13:43:17 +00:00
{% set exiler=exile.exiler %}
2022-02-24 12:03:28 +00:00
<td>{{loop.index}}</td>
<td><a style="color:#{{user.namecolor}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.namecolor}}"{% endif %}>{{user.username}}</span></a></td>
<td><a style="color:#{{exiler.namecolor}}" href="/@{{exiler.username}}"><img loading="lazy" src="{{exiler.profile_url}}" class="pp20"><span {% if exiler.patron %}class="patron" style="background-color:#{{exiler.namecolor}}"{% endif %}>{{exiler.username}}</span></a></td>
2022-03-09 01:44:53 +00:00
<td>
{% if v.mods(sub.name) %}
2022-03-09 02:04:37 +00:00
<form action="/h/{{sub.name}}/unexile/{{user.id}}" method="post">
2022-03-19 16:19:02 +00:00
<input type="hidden" name="formkey" value="{{v.formkey}}">
2022-05-25 02:58:26 +00:00
<input class="btn btn-primary" autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Unexile">
2022-03-09 01:44:53 +00:00
</form>
{% endif %}
</td>
2022-02-21 06:45:01 +00:00
</tr>
{% endfor %}
</table>
{% endblock %}