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 %}Identities{% endblock %}
|
2022-11-16 20:42:25 -08:00
|
|
|
|
|
|
|
{% block content %}
|
2022-12-16 18:42:48 -08:00
|
|
|
<form action="." class="search">
|
|
|
|
<input type="search" name="query" value="{{ query }}" placeholder="Search by name/username">
|
|
|
|
{% if local_only %}
|
|
|
|
<input type="hidden" name="local_only" value="true">
|
|
|
|
{% endif %}
|
|
|
|
<button><i class="fa-solid fa-search"></i></button>
|
|
|
|
</form>
|
|
|
|
<div class="view-options">
|
|
|
|
{% if local_only %}
|
|
|
|
<a href=".?{% if query %}query={{ query }}{% endif %}" class="selected"><i class="fa-solid fa-check"></i> Local Only</a>
|
|
|
|
{% else %}
|
|
|
|
<a href=".?local_only=true{% if query %}&query={{ query }}{% endif %}"><i class="fa-solid fa-xmark"></i> Local Only</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<section class="icon-menu">
|
|
|
|
{% for identity in page_obj %}
|
|
|
|
<a class="option" href="{{ identity.urls.admin_edit }}">
|
2022-12-26 09:14:23 -08:00
|
|
|
<div class="option-content">
|
|
|
|
{% include "identity/_identity_banner.html" with identity=identity link_avatar=False link_handle=False %}
|
|
|
|
</div>
|
|
|
|
<div class="option-actions">
|
2022-12-16 18:42:48 -08:00
|
|
|
{% if identity.banned %}
|
|
|
|
<span class="pill bad">Banned</span>
|
|
|
|
{% endif %}
|
2022-12-26 09:14:23 -08:00
|
|
|
</div>
|
2022-12-16 18:42:48 -08:00
|
|
|
</a>
|
|
|
|
{% empty %}
|
|
|
|
<p class="option empty">
|
|
|
|
{% if query %}
|
|
|
|
No identities match your query.
|
|
|
|
{% else %}
|
|
|
|
There are no identities yet.
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
{% endfor %}
|
2023-01-03 00:32:00 -08:00
|
|
|
<div class="pagination">
|
2022-12-16 18:42:48 -08:00
|
|
|
{% if page_obj.has_previous %}
|
|
|
|
<a class="button" href=".?page={{ page_obj.previous_page_number }}{% if local_only %}&local_only=true{% endif %}{% if query %}&query={{ query }}{% endif %}">Previous Page</a>
|
|
|
|
{% endif %}
|
2023-01-03 00:32:00 -08:00
|
|
|
{% if page_obj.paginator.count %}
|
|
|
|
<span class="count">{{ page_obj.paginator.count }} identit{{page_obj.paginator.count|pluralize:"y,ies" }}</span>
|
|
|
|
{% endif %}
|
2022-12-16 18:42:48 -08:00
|
|
|
{% if page_obj.has_next %}
|
|
|
|
<a class="button" href=".?page={{ page_obj.next_page_number }}{% if local_only %}&local_only=true{% endif %}{% if query %}&query={{ query }}{% endif %}">Next Page</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</section>
|
2022-11-16 20:42:25 -08:00
|
|
|
{% endblock %}
|