takahe/templates/admin/users.html

49 lines
1.8 KiB
HTML
Raw Normal View History

{% extends "admin/base_main.html" %}
{% load activity_tags %}
2022-11-17 16:43:00 -08:00
{% block subtitle %}Users{% endblock %}
{% block settings_content %}
2022-12-16 15:38:52 -08:00
<form action="." class="search">
<input type="search" name="query" value="{{ query }}" placeholder="Search by email">
<button><i class="fa-solid fa-search"></i></button>
</form>
<table class="items">
2022-12-16 15:38:52 -08:00
{% for user in page_obj %}
<tr>
<td class="icon">
2023-06-14 10:15:29 -07:00
<a href="{{ user.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
<i class="fa-solid fa-user"></i>
</td>
<td class="name">
2023-06-14 10:15:29 -07:00
<a href="{{ user.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
2022-12-16 15:38:52 -08:00
{{ user.email }}
<small>{% if user.admin %}Admin{% elif user.moderator %}Moderator{% endif %}</small>
</td>
<td class="stat">
{{ user.num_identities }}
2022-12-16 15:38:52 -08:00
<small>
identit{{ user.num_identities|pluralize:"y,ies" }}
2022-12-16 15:38:52 -08:00
</small>
2023-01-14 09:32:48 -08:00
</td>
<td class="actions">
{% if user.banned %}
<span class="bad">Banned</span>
{% endif %}
</td>
</tr>
2022-12-16 15:38:52 -08:00
{% empty %}
<tr class="empty">
<td>
{% if query %}
No users match your query.
{% else %}
There are no users yet.
{% endif %}
</td>
</tr>
2022-12-16 15:38:52 -08:00
{% endfor %}
</table>
{% include "admin/_pagination.html" with nouns="user,users" %}
{% endblock %}