2022-05-04 23:09:46 +00:00
|
|
|
{% extends "default.html" %}
|
2023-06-24 17:39:50 +00:00
|
|
|
{% block pagetitle %}Users blocked by @{{u.username}}{% endblock %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% block content %}
|
2023-09-05 17:31:05 +00:00
|
|
|
<h5 class="my-3">Users blocked by @{{u.username}} ({{users|length}} users)</h5>
|
2023-06-24 17:39:50 +00:00
|
|
|
<div class="overflow-x-auto mt-1"><table class="table table-striped mb-5">
|
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th class="disable-sort-click">Blocking since</th>
|
|
|
|
{% if v.id == u.id %}
|
|
|
|
<th class="disable-sort-click"></th>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="blockers-table">
|
|
|
|
{% for block, user in users %}
|
|
|
|
<tr>
|
|
|
|
<td>{% include "user_in_table.html" %}</td>
|
|
|
|
<td {% if block.created_utc > 1599343262 %}data-time="{{block.created_utc}}"{% endif %}></td>
|
|
|
|
{% if v.id == u.id %}
|
|
|
|
<td>
|
2023-09-07 08:51:57 +00:00
|
|
|
<button type="button" class="btn btn-primary" data-nonce="{{g.nonce}}" data-onclick="unblock_user(this, '/unblock_user?username={{user.username}}&formkey={{v|formkey}}')">Unblock</button>
|
2023-06-24 17:39:50 +00:00
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{% if v.id == u.id %}
|
|
|
|
<script defer src="{{'js/settings_blocks.js' | asset}}"></script>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block pagenav %}
|
|
|
|
{% include "pagination.html" %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% endblock %}
|