2023-09-07 09:35:06 +00:00
|
|
|
{% extends "default.html" %}
|
2023-09-07 09:45:42 +00:00
|
|
|
{% block pagetitle %}Users whose notifications are muted by @{{u.username}}{% endblock %}
|
2023-09-07 09:35:06 +00:00
|
|
|
{% block content %}
|
2023-10-29 12:51:00 +00:00
|
|
|
<h5 class="my-3">Users whose notifications are muted by @{{u.username}} ({{total}} user{{macros.plural(total)}})</h5>
|
|
|
|
<div class="overflow-x-auto mt-1">
|
2024-02-12 14:18:13 +00:00
|
|
|
<table>
|
|
|
|
<thead>
|
2023-10-29 12:51:00 +00:00
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th class="disable-sort-click">Muting notifications since</th>
|
|
|
|
{% if v.id == u.id %}
|
|
|
|
<th class="disable-sort-click"></th>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="muters-table">
|
|
|
|
{% for mute, user in users %}
|
|
|
|
<tr>
|
|
|
|
<td>{% include "user_in_table.html" %}</td>
|
|
|
|
<td data-time="{{mute.created_utc}}"></td>
|
|
|
|
{% if v.id == u.id %}
|
|
|
|
<td>
|
|
|
|
<button type="button" class="btn btn-primary" data-nonce="{{g.nonce}}" data-onclick="unmute_notifs(this, '/unmute_notifs/{{user.id}}')">Unmute</button>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2023-09-07 09:35:06 +00:00
|
|
|
|
2023-10-29 12:51:00 +00:00
|
|
|
{% if v.id == u.id %}
|
|
|
|
<script defer src="{{'js/userpage_muting.js' | asset}}"></script>
|
|
|
|
{% endif %}
|
2023-09-07 09:35:06 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block pagenav %}
|
2023-10-29 12:51:00 +00:00
|
|
|
{% include "pagination.html" %}
|
2023-09-07 09:35:06 +00:00
|
|
|
{% endblock %}
|