2021-04-30 11:40:47 -04:00
|
|
|
{% extends 'user/layout.html' %}
|
2021-02-27 21:48:10 -05:00
|
|
|
{% load i18n %}
|
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">
|
2021-02-28 13:00:36 -05:00
|
|
|
{% trans "User Profile" %}
|
2021-01-29 12:05:53 -05:00
|
|
|
</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">
|
2021-02-27 21:48:10 -05:00
|
|
|
<h2 class="title">{% trans "Followers" %}</h2>
|
2021-03-07 13:24:46 -05:00
|
|
|
{% for follower in followers %}
|
2021-02-23 16:04:24 -05:00
|
|
|
<div class="block columns">
|
|
|
|
<div class="column">
|
2021-03-07 13:24:46 -05:00
|
|
|
<a href="{{ follower.local_path }}">
|
|
|
|
{% include 'snippets/avatar.html' with user=follower %}
|
|
|
|
{{ follower.display_name }}
|
|
|
|
</a>
|
|
|
|
({{ follower.username }})
|
2021-02-23 16:04:24 -05:00
|
|
|
</div>
|
|
|
|
<div class="column is-narrow">
|
2021-03-07 13:24:46 -05:00
|
|
|
{% include 'snippets/follow_button.html' with user=follower %}
|
2020-03-16 20:09:45 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2021-04-30 11:23:02 -04:00
|
|
|
{% if not followers %}
|
2021-03-07 13:24:46 -05:00
|
|
|
<div>{% blocktrans with username=user.display_name %}{{ username }} has no followers{% endblocktrans %}</div>
|
2020-03-16 20:09:45 -04:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2021-04-26 13:26:27 -04:00
|
|
|
|
|
|
|
{% include 'snippets/pagination.html' with page=followers path=request.path %}
|
2020-03-16 20:09:45 -04:00
|
|
|
{% endblock %}
|