rDrama/files/templates/hole/exilees.html

39 lines
1.1 KiB
HTML
Raw Normal View History

2022-02-21 06:45:01 +00:00
{% extends "default.html" %}
2023-10-07 17:55:50 +00:00
{% block pagetitle %}/h/{{hole}} Exiles{% endblock %}
2022-02-21 06:45:01 +00:00
{% block content %}
2023-10-29 12:51:00 +00:00
<h5 class="my-4 ml-2">Users exiled from /h/{{hole}}</h5>
<div class="overflow-x-auto">
<table>
<thead>
2023-10-29 12:51:00 +00:00
<tr>
<th>#</th>
<th>Name</th>
<th>Exiled by</th>
<th>Exiled since</th>
<th class="disable-sort-click"></th>
</tr>
</thead>
{% for user, exile in users %}
<tr>
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
<td>
{% with user=exile.exiler %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td {% if exile.created_utc %}data-time="{{exile.created_utc}}"{% endif %}></td>
<td>
2024-01-12 07:18:04 +00:00
{% if v.mods_hole(hole.name) %}
2023-10-29 12:51:00 +00:00
<form action="/h/{{hole}}/unexile/{{user.id}}" method="post" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHRReload(this)">
2024-03-01 17:03:21 +00:00
<input hidden name="formkey" value="{{v|formkey}}" class="notranslate" translate="no">
2023-10-29 12:51:00 +00:00
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Unexile">
</form>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}