forked from MarseyWorld/MarseyWorld
39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
{% extends "default.html" %}
|
|
{% block pagetitle %}/h/{{hole}} Exiles{% endblock %}
|
|
{% block content %}
|
|
<h5 class="my-4 ml-2">Users exiled from /h/{{hole}}</h5>
|
|
<div class="overflow-x-auto">
|
|
<table>
|
|
<thead>
|
|
<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>
|
|
{% if v.mods_hole(hole.name) %}
|
|
<form action="/h/{{hole}}/unexile/{{user.id}}" method="post" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHRReload(this)">
|
|
<input hidden name="formkey" value="{{v|formkey}}" class="notranslate" translate="no">
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Unexile">
|
|
</form>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|