2021-04-30 16:17:46 +00:00
|
|
|
{% extends 'user/layout.html' %}
|
|
|
|
{% load i18n %}
|
2021-05-11 22:14:42 +00:00
|
|
|
{% load utilities %}
|
2021-04-30 16:17:46 +00:00
|
|
|
|
2021-04-30 16:23:59 +00:00
|
|
|
{% block tabs %}
|
|
|
|
{% with user|username as username %}
|
|
|
|
<nav class="tabs">
|
|
|
|
<ul>
|
|
|
|
{% url 'user-followers' user|username as url %}
|
|
|
|
<li{% if url == request.path or url == request.path|add:'/' %} class="is-active"{% endif %}>
|
|
|
|
<a href="{{ url }}">{% trans "Followers" %}</a>
|
|
|
|
</li>
|
2021-04-30 16:48:10 +00:00
|
|
|
{% url 'user-following' user|username as url %}
|
|
|
|
<li{% if url == request.path or url == request.path|add:'/' %} class="is-active"{% endif %}>
|
|
|
|
<a href="{{ url }}">{% trans "Following" %}</a>
|
|
|
|
</li>
|
2021-04-30 16:23:59 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{% endwith %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2021-04-30 16:17:46 +00:00
|
|
|
{% block panel %}
|
|
|
|
<div class="block">
|
|
|
|
{% for follow in follow_list %}
|
|
|
|
<div class="block columns">
|
|
|
|
<div class="column">
|
2021-04-30 23:44:14 +00:00
|
|
|
<a href="{{ follow.local_path }}">
|
2021-04-30 16:17:46 +00:00
|
|
|
{% include 'snippets/avatar.html' with user=follow %}
|
|
|
|
{{ follow.display_name }}
|
|
|
|
</a>
|
|
|
|
({{ follow.username }})
|
|
|
|
</div>
|
|
|
|
<div class="column is-narrow">
|
|
|
|
{% include 'snippets/follow_button.html' with user=follow %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% if not follow_list %}
|
|
|
|
{% block nullstate %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% include 'snippets/pagination.html' with page=follow_list path=request.path %}
|
|
|
|
{% endblock %}
|