2023-05-04 04:42:37 +00:00
|
|
|
{% extends "admin/base_main.html" %}
|
2023-01-11 03:31:50 +00:00
|
|
|
{% load activity_tags %}
|
2022-11-17 04:42:25 +00:00
|
|
|
|
2022-11-18 00:43:00 +00:00
|
|
|
{% block subtitle %}Users{% endblock %}
|
2022-11-17 04:42:25 +00:00
|
|
|
|
2023-05-04 04:42:37 +00:00
|
|
|
{% block settings_content %}
|
2022-12-16 23:38:52 +00: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>
|
2023-01-11 03:31:50 +00:00
|
|
|
<table class="items">
|
2022-12-16 23:38:52 +00:00
|
|
|
{% for user in page_obj %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
2023-06-14 17:15:29 +00:00
|
|
|
<a href="{{ user.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
|
2023-01-11 03:31:50 +00:00
|
|
|
<i class="fa-solid fa-user"></i>
|
|
|
|
</td>
|
|
|
|
<td class="name">
|
2023-06-14 17:15:29 +00:00
|
|
|
<a href="{{ user.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
|
2022-12-16 23:38:52 +00:00
|
|
|
{{ user.email }}
|
2023-01-11 03:31:50 +00:00
|
|
|
<small>{% if user.admin %}Admin{% elif user.moderator %}Moderator{% endif %}</small>
|
|
|
|
</td>
|
|
|
|
<td class="stat">
|
|
|
|
{{ user.num_identities }}
|
2022-12-16 23:38:52 +00:00
|
|
|
<small>
|
2023-01-11 03:31:50 +00:00
|
|
|
identit{{ user.num_identities|pluralize:"y,ies" }}
|
2022-12-16 23:38:52 +00:00
|
|
|
</small>
|
2023-01-14 17:32:48 +00:00
|
|
|
</td>
|
2023-01-11 03:31:50 +00:00
|
|
|
<td class="actions">
|
|
|
|
{% if user.banned %}
|
|
|
|
<span class="bad">Banned</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-12-16 23:38:52 +00:00
|
|
|
{% empty %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<tr class="empty">
|
|
|
|
<td>
|
|
|
|
{% if query %}
|
|
|
|
No users match your query.
|
|
|
|
{% else %}
|
|
|
|
There are no users yet.
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-12-16 23:38:52 +00:00
|
|
|
{% endfor %}
|
2023-01-11 03:31:50 +00:00
|
|
|
</table>
|
2023-01-13 22:54:21 +00:00
|
|
|
{% include "admin/_pagination.html" with nouns="user,users" %}
|
2022-11-17 04:42:25 +00:00
|
|
|
{% endblock %}
|