mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-29 00:20:29 +00:00
00795f119e
This overcomes the query problem of pulling a combined list
45 lines
1.6 KiB
HTML
45 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% 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>
|
|
|
|
<section class="icon-menu">
|
|
{% for identity in page_obj %}
|
|
<a class="option" href="{{ identity.urls.view }}">
|
|
<img src="{{ identity.local_icon_url.relative }}">
|
|
<span class="handle">
|
|
{{ identity.html_name_or_handle }}
|
|
<small>@{{ identity.handle }}</small>
|
|
</span>
|
|
{% 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 %}
|
|
</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>
|
|
{% endblock %}
|