mirror of
https://github.com/jointakahe/takahe.git
synced 2025-04-27 15:54:42 +00:00
47 lines
1.8 KiB
HTML
47 lines
1.8 KiB
HTML
|
{% extends "settings/base.html" %}
|
||
|
|
||
|
{% block subtitle %}Follows{% endblock %}
|
||
|
|
||
|
{% block settings_content %}
|
||
|
<div class="view-options">
|
||
|
{% if inbound %}
|
||
|
<a href=".">Following ({{ num_outbound }})</a>
|
||
|
<a href="." class="selected">Followers ({{ num_inbound }})</a>
|
||
|
{% else %}
|
||
|
<a href=".?inbound=true" class="selected">Following ({{ num_outbound }})</a>
|
||
|
<a href=".?inbound=true">Followers ({{ num_inbound }})</a>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
|
||
|
<table class="items">
|
||
|
{% for other_identity in page_obj %}
|
||
|
<tr>
|
||
|
<td class="icon">
|
||
|
<a href="{{ domain.urls.edit }}" class="overlay"></a>
|
||
|
<img
|
||
|
src="{{ other_identity.local_icon_url.relative }}"
|
||
|
class="icon"
|
||
|
alt="Avatar for {{ other_identity.name_or_handle }}"
|
||
|
loading="lazy"
|
||
|
data-handle="{{ other_identity.name_or_handle }}"
|
||
|
_="on error set my.src to generate_avatar(@data-handle)"
|
||
|
>
|
||
|
</td>
|
||
|
<td>
|
||
|
<a href="{{ other_identity.urls.view }}" class="overlay">{{ other_identity.handle }}</a>
|
||
|
</td>
|
||
|
<td class="stat">
|
||
|
{% if identity.id in outbound_ids %}
|
||
|
<span class="pill">Following</span>
|
||
|
{% endif %}
|
||
|
{% if identity.id in inbound_ids %}
|
||
|
<span class="pill">Follows You</span>
|
||
|
{% endif %}
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% empty %}
|
||
|
<tr class="empty"><td>You {% if inbound %}have no followers{% else %}are not following anyone{% endif %}.</td></tr>
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
{% endblock %}
|