moviewyrm/bookwyrm/templates/user/followers.html

33 lines
934 B
HTML
Raw Normal View History

2021-01-29 17:05:53 +00:00
{% extends 'user/user_layout.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
2020-12-13 02:25:04 +00:00
{% load bookwyrm_tags %}
2020-11-10 21:39:37 +00:00
2021-01-29 17:05:53 +00:00
{% block header %}
<h1 class="title">
{% trans "User Profile" %}
2021-01-29 17:05:53 +00:00
</h1>
{% endblock %}
2020-03-17 00:09:45 +00:00
2021-01-29 17:05:53 +00:00
{% block panel %}
2020-09-29 20:39:44 +00:00
<div class="block">
2021-02-28 02:48:10 +00:00
<h2 class="title">{% trans "Followers" %}</h2>
2021-03-07 18:24:46 +00:00
{% for follower in followers %}
2021-02-23 21:04:24 +00:00
<div class="block columns">
<div class="column">
2021-03-07 18:24:46 +00:00
<a href="{{ follower.local_path }}">
{% include 'snippets/avatar.html' with user=follower %}
{{ follower.display_name }}
</a>
({{ follower.username }})
2021-02-23 21:04:24 +00:00
</div>
<div class="column is-narrow">
2021-03-07 18:24:46 +00:00
{% include 'snippets/follow_button.html' with user=follower %}
2020-03-17 00:09:45 +00:00
</div>
</div>
{% endfor %}
{% if not followers.count %}
2021-03-07 18:24:46 +00:00
<div>{% blocktrans with username=user.display_name %}{{ username }} has no followers{% endblocktrans %}</div>
2020-03-17 00:09:45 +00:00
{% endif %}
</div>
{% endblock %}