takahe/templates/activities/follows.html

48 lines
1.8 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
2022-12-16 16:39:10 -08:00
{% load activity_tags %}
2022-11-17 19:04:01 -08:00
{% block subtitle %}Follows{% endblock %}
{% block content %}
<div class="view-options">
{% if inbound %}
2022-12-16 16:32:04 -08:00
<a href=".">Your Follows ({{ num_outbound }})</a>
<a href="." class="selected">Follows You ({{ num_inbound }})</a>
{% else %}
2022-12-16 16:32:04 -08:00
<a href=".?inbound=true" class="selected">Your Follows ({{ num_outbound }})</a>
<a href=".?inbound=true">Follows You ({{ num_inbound }})</a>
{% endif %}
</div>
2022-11-17 19:04:01 -08:00
<section class="icon-menu">
{% for identity in page_obj %}
2022-11-17 19:04:01 -08:00
<a class="option" href="{{ identity.urls.view }}">
<img src="{{ identity.local_icon_url.relative }}">
2022-11-17 19:04:01 -08:00
<span class="handle">
2022-12-14 23:50:54 -08:00
{{ identity.html_name_or_handle }}
2022-11-17 19:04:01 -08:00
<small>@{{ identity.handle }}</small>
</span>
{% if identity.id in outbound_ids %}
2022-11-17 19:04:01 -08:00
<span class="pill">Following</span>
{% endif %}
{% if identity.id in inbound_ids %}
2022-11-17 19:04:01 -08:00
<span class="pill">Follows You</span>
{% endif %}
2022-12-16 16:39:10 -08:00
<time>{{ identity.follow_date | timedeltashort }} ago</time>
2022-11-17 19:04:01 -08:00
</a>
{% empty %}
<p class="option empty">You have no follows.</p>
{% endfor %}
</section>
<div class="pagination">
{% if page_obj.has_previous %}
2022-12-16 16:32:04 -08:00
<a class="button" href=".?page={{ page_obj.previous_page_number }}{% if inbound %}&amp;inbound=true{% endif %}">Previous Page</a>
{% endif %}
{% if page_obj.has_next %}
2022-12-16 16:32:04 -08:00
<a class="button" href=".?page={{ page_obj.next_page_number }}{% if inbound %}&amp;inbound=true{% endif %}">Next Page</a>
{% endif %}
</div>
2022-11-17 19:04:01 -08:00
{% endblock %}