rDrama/files/templates/hole/exilees.html

38 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-07 17:55:50 +00:00
<h5 class="my-4 ml-2">Users exiled from /h/{{hole}}</h5>
2022-02-21 06:45:01 +00:00
<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>
<th>Exiled since</th>
<th class="disable-sort-click"></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-24 12:03:28 +00:00
<td>{{loop.index}}</td>
2022-09-05 03:01:06 +00:00
<td>{% include "user_in_table.html" %}</td>
<td>
{% with user=exile.exiler %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
2022-09-24 18:18:00 +00:00
<td {% if exile.created_utc %}data-time="{{exile.created_utc}}"{% endif %}></td>
2022-03-09 01:44:53 +00:00
<td>
2023-10-07 17:55:50 +00:00
{% if v.mods(hole.name) %}
<form action="/h/{{hole}}/unexile/{{user.id}}" method="post" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHRReload(this)">
2023-01-24 05:10:16 +00:00
<input hidden name="formkey" value="{{v|formkey}}">
2023-03-07 00:21:08 +00:00
<input 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 %}