MarseyWorld/files/templates/userpage/blocking.html

41 lines
1.2 KiB
HTML
Raw Normal View History

2022-05-04 23:09:46 +00:00
{% extends "default.html" %}
{% block pagetitle %}Users blocked by @{{u.username}}{% endblock %}
2022-05-04 23:09:46 +00:00
{% block content %}
2023-10-29 12:51:00 +00:00
<h5 class="my-3">Users blocked by @{{u.username}} ({{total}} user{{macros.plural(total)}})</h5>
2023-10-29 12:56:44 +00:00
<div class="overflow-x-auto mt-1">
<table>
<thead>
2023-10-29 12:56:44 +00:00
<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>
<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>
</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
2023-10-29 12:51:00 +00:00
{% if v.id == u.id %}
<script defer src="{{'js/userpage_blocking.js' | asset}}"></script>
{% endif %}
{% endblock %}
{% block pagenav %}
2024-03-03 01:25:02 +00:00
{{macros.pagination()}}
2022-05-04 23:09:46 +00:00
{% endblock %}