MarseyWorld/files/templates/blocks.html

46 lines
1.3 KiB
HTML

{% extends "meta_navbar.html" %}
{% block pagetitle %}Blocks{% endblock %}
{% block content %}
<h5 class="font-weight-bolder text-center pt-2 pb-3"><span>Blocks</span></h5>
<div class="overflow-x-auto mt-3">
<table>
<thead>
<tr>
<th class="disable-sort-click" {% if sort=="user" %}disabled{% endif %}>
<a href="?sort=user">User</a>
</th>
<th class="disable-sort-click" {% if sort=="target" %}disabled{% endif %}>
<a href="?sort=target">Target</a>
</th>
<th class="disable-sort-click" {% if sort=="time" %}disabled{% endif %}>
<a href="?sort=time">Blocked on</a>
</th>
<th class="disable-sort-click" {% if sort=="time" %}disabled{% endif %}>
<a href="?sort=time">Expires on</a>
</th>
</tr>
</thead>
{% for block in blocks %}
<tr>
<td>
{% with user = block.user %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>
{% with user = block.target %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td data-time="{{block.created_utc}}"></td>
<td data-time="{{block.created_utc+2592000}}"></td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}
{% block pagenav %}
{{macros.pagination()}}
{% endblock %}