moviewyrm/bookwyrm/templates/following.html

39 lines
1.1 KiB
HTML
Raw Normal View History

2020-03-17 00:09:45 +00:00
{% extends 'layout.html' %}
2020-12-13 02:25:04 +00:00
{% load bookwyrm_tags %}
2020-03-17 00:09:45 +00:00
{% block content %}
2020-11-10 21:39:37 +00:00
<div class="block">
<h1 class="title">
Users following
{% if is_self %}you
{% else %}
{% include 'snippets/username.html' with user=user %}
{% endif %}
</h1>
</div>
2020-11-06 20:02:25 +00:00
{% include 'snippets/user_header.html' with user=user %}
2020-03-17 00:09:45 +00:00
2020-09-29 20:39:44 +00:00
<div class="block">
<h2 class="title">Following</h2>
2020-03-17 00:09:45 +00:00
{% for follower in user.following.all %}
2020-09-29 20:39:44 +00: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-17 00:09:45 +00:00
</div>
</div>
{% endfor %}
{% if not following.count %}
<div>No one is following {{ user|username }}</div>
{% endif %}
</div>
{% endblock %}