2021-01-29 12:05:53 -05:00
|
|
|
{% extends 'user/user_layout.html' %}
|
2020-12-12 21:25:04 -05:00
|
|
|
{% load bookwyrm_tags %}
|
2020-11-10 16:39:37 -05:00
|
|
|
|
2021-01-29 12:05:53 -05:00
|
|
|
{% block header %}
|
|
|
|
<h1 class="title">
|
|
|
|
Users following
|
|
|
|
{% if is_self %}you
|
|
|
|
{% else %}
|
|
|
|
{% include 'snippets/username.html' with user=user %}
|
|
|
|
{% endif %}
|
|
|
|
</h1>
|
|
|
|
{% endblock %}
|
2020-03-16 20:09:45 -04:00
|
|
|
|
2021-01-29 12:05:53 -05:00
|
|
|
{% block panel %}
|
2020-09-29 16:39:44 -04:00
|
|
|
<div class="block">
|
|
|
|
<h2 class="title">Following</h2>
|
2020-03-16 20:09:45 -04:00
|
|
|
{% for follower in user.following.all %}
|
2020-09-29 16:39:44 -04:00
|
|
|
<div class="block">
|
|
|
|
<div class="field is-grouped">
|
|
|
|
<div class="control">
|
|
|
|
{% include 'snippets/avatar.html' with user=follower %}
|
|
|
|
</div>
|
|
|
|
<div class="control">
|
|
|
|
{% include 'snippets/username.html' with user=follower show_full=True %}
|
|
|
|
</div>
|
|
|
|
<div class="control">
|
|
|
|
{% include 'snippets/follow_button.html' with user=follower %}
|
|
|
|
</div>
|
2020-03-16 20:09:45 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% if not following.count %}
|
2020-12-30 20:36:35 -05:00
|
|
|
<div>{{ user|username }} isn't following any users</div>
|
2020-03-16 20:09:45 -04:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|