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 %}Identities{% endblock %}
|
2022-11-17 04:42:25 +00:00
|
|
|
|
2023-05-04 04:42:37 +00:00
|
|
|
{% block settings_content %}
|
2022-12-17 02:42:48 +00: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 %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<a href=".?{% urlparams local_only=False %}" class="selected"><i class="fa-solid fa-check"></i> Local Only</a>
|
2022-12-17 02:42:48 +00:00
|
|
|
{% else %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<a href=".?{% urlparams local_only=True %}"><i class="fa-solid fa-xmark"></i> Local Only</a>
|
2022-12-17 02:42:48 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-01-11 03:31:50 +00:00
|
|
|
<table class="items">
|
2022-12-17 02:42:48 +00:00
|
|
|
{% for identity in page_obj %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
|
|
|
<a href="{{ identity.urls.admin_edit }}" class="overlay"></a>
|
|
|
|
<img
|
|
|
|
src="{{ identity.local_icon_url.relative }}"
|
|
|
|
class="icon"
|
|
|
|
alt="Avatar for {{ identity.name_or_handle }}"
|
|
|
|
loading="lazy"
|
|
|
|
data-handle="{{ identity.name_or_handle }}"
|
|
|
|
_="on error set my.src to generate_avatar(@data-handle)"
|
|
|
|
>
|
|
|
|
</td>
|
|
|
|
<td class="name">
|
|
|
|
<a href="{{ identity.urls.admin_edit }}" class="overlay"></a>
|
|
|
|
{{ identity.html_name_or_handle }}
|
|
|
|
<small>@{{ identity.handle }}</small>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if identity.restriction == 1 %}
|
|
|
|
<span class="bad">Limited</span>
|
|
|
|
{% elif identity.restriction == 2 %}
|
|
|
|
<span class="bad">Blocked</span>
|
2023-01-09 16:58:17 +00:00
|
|
|
{% endif %}
|
2023-01-11 03:31:50 +00:00
|
|
|
</td>
|
|
|
|
<td class="stat">
|
|
|
|
{% if identity.local %}
|
|
|
|
Local
|
|
|
|
<small>{{ identity.followers_count }} follower{{ identity.followers_count|pluralize }}</small>
|
|
|
|
{% else %}
|
|
|
|
Remote
|
|
|
|
<small>{{ identity.followers_count }} local follower{{ identity.followers_count|pluralize }}</small>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td class="actions">
|
|
|
|
<a href="{{ identity.urls.admin_edit }}" title="View"><i class="fa-solid fa-eye"></i></a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-12-17 02:42:48 +00:00
|
|
|
{% empty %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<tr class="empty">
|
|
|
|
<td>
|
|
|
|
{% if query %}
|
|
|
|
No identities match your query.
|
|
|
|
{% else %}
|
|
|
|
There are no identities yet.
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-12-17 02:42:48 +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="identity,identities" %}
|
2022-11-17 04:42:25 +00:00
|
|
|
{% endblock %}
|