2022-11-17 16:43:00 -08:00
|
|
|
{% extends "settings/base.html" %}
|
2022-11-16 20:42:25 -08:00
|
|
|
|
2022-11-17 16:43:00 -08:00
|
|
|
{% block subtitle %}Users{% endblock %}
|
2022-11-16 20:42:25 -08:00
|
|
|
|
|
|
|
{% block 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>
|
|
|
|
<section class="icon-menu">
|
|
|
|
{% for user in page_obj %}
|
|
|
|
<a class="option" href="{{ user.urls.admin_edit }}">
|
|
|
|
<i class="fa-solid fa-user"></i>
|
|
|
|
<span class="handle">
|
|
|
|
{{ user.email }}
|
|
|
|
<small>
|
|
|
|
{{ user.num_identities }} identit{{ user.num_identities|pluralize:"y,ies" }}
|
|
|
|
</small>
|
|
|
|
</span>
|
|
|
|
{% if user.banned %}
|
|
|
|
<span class="pill bad">Banned</span>
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
{% empty %}
|
|
|
|
<p class="option empty">
|
|
|
|
{% if query %}
|
|
|
|
No users match your query.
|
|
|
|
{% else %}
|
|
|
|
There are no users yet.
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
{% endfor %}
|
2023-01-03 00:32:00 -08:00
|
|
|
<div class="pagination">
|
2022-12-16 15:38:52 -08:00
|
|
|
{% if page_obj.has_previous %}
|
|
|
|
<a class="button" href=".?page={{ page_obj.previous_page_number }}">Previous Page</a>
|
|
|
|
{% endif %}
|
2023-01-03 00:32:00 -08:00
|
|
|
{% if page_obj.paginator.count %}
|
|
|
|
<span class="count">{{ page_obj.paginator.count }} user{{page_obj.paginator.count|pluralize }}</span>
|
|
|
|
{% endif %}
|
2022-12-16 15:38:52 -08:00
|
|
|
{% if page_obj.has_next %}
|
|
|
|
<a class="button" href=".?page={{ page_obj.next_page_number }}">Next Page</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</section>
|
2022-11-16 20:42:25 -08:00
|
|
|
{% endblock %}
|