2022-12-04 08:41:41 -08:00
|
|
|
{% 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 %}
|
2022-12-16 16:24:56 -08:00
|
|
|
<div class="view-options">
|
|
|
|
{% if inbound %}
|
2022-12-27 16:03:14 -08:00
|
|
|
<a href=".">Following ({{ num_outbound }})</a>
|
|
|
|
<a href="." class="selected">Followers ({{ num_inbound }})</a>
|
2022-12-16 16:24:56 -08:00
|
|
|
{% else %}
|
2022-12-27 16:03:14 -08:00
|
|
|
<a href=".?inbound=true" class="selected">Following ({{ num_outbound }})</a>
|
|
|
|
<a href=".?inbound=true">Followers ({{ num_inbound }})</a>
|
2022-12-16 16:24:56 -08:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
2022-11-17 19:04:01 -08:00
|
|
|
<section class="icon-menu">
|
2022-12-16 16:24:56 -08:00
|
|
|
{% for identity in page_obj %}
|
2022-12-26 09:14:23 -08:00
|
|
|
<a class="option " href="{{ identity.urls.view }}">
|
2023-01-09 08:58:17 -08:00
|
|
|
<div class="option-content">
|
|
|
|
{% include "identity/_identity_banner.html" with identity=identity link_avatar=False link_handle=False %}
|
|
|
|
</div>
|
|
|
|
<div class="option-actions">
|
|
|
|
{% 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 %}
|
2022-12-21 11:57:14 -08:00
|
|
|
|
2023-01-09 08:58:17 -08:00
|
|
|
{% if inbound %}
|
|
|
|
<form action="{{ identity.urls.action }}" method="POST" class="follow">
|
|
|
|
{% csrf_token %}
|
|
|
|
{% if identity.id in outbound_ids %}
|
|
|
|
<input type="hidden" name="action" value="unfollow">
|
|
|
|
<button class="destructive">Unfollow</button>
|
|
|
|
{% else %}
|
|
|
|
<input type="hidden" name="action" value="follow">
|
|
|
|
<button>Follow</button>
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
<time>{{ identity.follow_date | timedeltashort }} ago</time>
|
|
|
|
</div>
|
2022-11-17 19:04:01 -08:00
|
|
|
</a>
|
|
|
|
{% empty %}
|
2022-12-27 16:03:14 -08:00
|
|
|
<p class="option empty">You {% if inbound %}have no followers{% else %}are not following anyone{% endif %}.</p>
|
2022-11-17 19:04:01 -08:00
|
|
|
{% endfor %}
|
|
|
|
</section>
|
2022-12-16 16:06:29 -08:00
|
|
|
|
|
|
|
<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 %}&inbound=true{% endif %}">Previous Page</a>
|
2022-12-16 16:06:29 -08:00
|
|
|
{% 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 %}&inbound=true{% endif %}">Next Page</a>
|
2022-12-16 16:06:29 -08:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-11-17 19:04:01 -08:00
|
|
|
{% endblock %}
|