takahe/templates/activities/follows.html

46 lines
1.6 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
2022-11-18 03:04:01 +00:00
{% block subtitle %}Follows{% endblock %}
{% block content %}
<div class="view-options">
{% if inbound %}
<a href=".?outbound=true">Your Follows</a>
<a href=".?outbound=true" class="selected">Follows You</a>
{% else %}
<a href=".?inbound=true" class="selected">Your Follows</a>
<a href=".?inbound=true">Follows You</a>
{% endif %}
</div>
2022-11-18 03:04:01 +00:00
<section class="icon-menu">
{% for identity in page_obj %}
2022-11-18 03:04:01 +00:00
<a class="option" href="{{ identity.urls.view }}">
<img src="{{ identity.local_icon_url.relative }}">
2022-11-18 03:04:01 +00:00
<span class="handle">
2022-12-15 07:50:54 +00:00
{{ identity.html_name_or_handle }}
2022-11-18 03:04:01 +00:00
<small>@{{ identity.handle }}</small>
</span>
{% if identity.id in outbound_ids %}
2022-11-18 03:04:01 +00:00
<span class="pill">Following</span>
{% endif %}
{% if identity.id in inbound_ids %}
2022-11-18 03:04:01 +00:00
<span class="pill">Follows You</span>
{% endif %}
</a>
{% empty %}
<p class="option empty">You have no follows.</p>
{% endfor %}
</section>
<div class="pagination">
{% if page_obj.has_previous %}
<a class="button" href=".?page={{ page_obj.previous_page_number }}">Previous Page</a>
{% endif %}
{% if page_obj.has_next %}
<a class="button" href=".?page={{ page_obj.next_page_number }}">Next Page</a>
{% endif %}
</div>
2022-11-18 03:04:01 +00:00
{% endblock %}