2023-05-03 21:42:37 -07:00
|
|
|
{% extends "admin/base_main.html" %}
|
2022-12-16 18:42:48 -08:00
|
|
|
|
|
|
|
{% block subtitle %}{{ identity.name_or_handle }}{% endblock %}
|
|
|
|
|
2023-05-03 21:42:37 -07:00
|
|
|
{% block settings_content %}
|
2022-12-16 18:42:48 -08:00
|
|
|
<h1>{{ identity.html_name_or_handle }} <small>{{ identity.handle }}</small></h1>
|
|
|
|
<form action="." method="POST">
|
|
|
|
{% csrf_token %}
|
|
|
|
<fieldset>
|
|
|
|
<legend>Stats</legend>
|
|
|
|
<table class="metadata">
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Status</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>
|
|
|
|
{% if identity.limited %}
|
|
|
|
Limited
|
|
|
|
{% elif identity.blocked %}
|
|
|
|
Blocked
|
|
|
|
{% else %}
|
|
|
|
Normal
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% if identity.local %}
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Type</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>Local Identity</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Followers</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>{{ identity.inbound_follows.count }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Following</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>{{ identity.outbound_follows.count }}</td>
|
|
|
|
</tr>
|
|
|
|
{% else %}
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Type</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>Remote Identity</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Local Followers</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>{{ identity.inbound_follows.count }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Following Locals</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>{{ identity.outbound_follows.count }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Posts</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>{{ identity.posts.count }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>First Seen</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>{{ identity.created|timesince }} ago</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
{% if identity.local %}
|
2023-01-09 08:58:17 -08:00
|
|
|
<fieldset>
|
|
|
|
<legend>Users</legend>
|
|
|
|
<p>
|
|
|
|
{% for user in identity.users.all %}
|
|
|
|
<a href="{{ user.urls.admin_edit }}">{{ user.email }}</a>{% if not forloop.last %}, {% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
2022-12-16 18:42:48 -08:00
|
|
|
{% endif %}
|
|
|
|
<fieldset>
|
|
|
|
<legend>Technical</legend>
|
|
|
|
<table class="metadata">
|
|
|
|
{% if not identity.local %}
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Last Fetched</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>{{ identity.fetched|timesince }} ago</td>
|
|
|
|
</tr>
|
|
|
|
{% if identity.state == "outdated" %}
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Attempting Fetch Since</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>{{ identity.state_changed|timesince }} ago</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Actor URI</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>{{ identity.actor_uri }}</td>
|
|
|
|
</tr>
|
|
|
|
{% if not identity.local %}
|
|
|
|
<tr>
|
2023-01-14 09:32:48 -08:00
|
|
|
<th>Inbox URI</th>
|
2022-12-16 18:42:48 -08:00
|
|
|
<td>{{ identity.inbox_uri }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<legend>Admin Notes</legend>
|
|
|
|
{% include "forms/_field.html" with field=form.notes %}
|
|
|
|
</fieldset>
|
|
|
|
<div class="buttons">
|
|
|
|
{% if not identity.local %}
|
2023-01-14 09:32:48 -08:00
|
|
|
<button class="left" name="fetch">Force Fetch</button>
|
2022-12-16 18:42:48 -08:00
|
|
|
{% endif %}
|
|
|
|
{% if identity.limited %}
|
2023-01-14 09:32:48 -08:00
|
|
|
<button class="left delete" name="unlimit">Unlimit</button>
|
2022-12-16 18:42:48 -08:00
|
|
|
{% else %}
|
2023-01-14 09:32:48 -08:00
|
|
|
<button class="left delete" name="limit">Limit</button>
|
2022-12-16 18:42:48 -08:00
|
|
|
{% endif %}
|
|
|
|
{% if identity.blocked %}
|
2023-01-14 09:32:48 -08:00
|
|
|
<button class="left delete" name="unblock">Unblock</button>
|
2022-12-16 18:42:48 -08:00
|
|
|
{% else %}
|
2023-01-14 09:32:48 -08:00
|
|
|
<button class="left delete" name="block">Block</button>
|
2022-12-16 18:42:48 -08:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="buttons">
|
2023-06-14 10:15:29 -07:00
|
|
|
<a href="{{ identity.urls.admin }}?page={{ page }}" class="button secondary left">Back</a>
|
2022-12-16 18:42:48 -08:00
|
|
|
<a href="{{ identity.urls.view }}" class="button secondary">View Profile</a>
|
|
|
|
<button>Save Notes</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|