Display following/followed users on the profile page

This commit is contained in:
2018-07-09 13:04:55 +02:00
parent ba1a660b1a
commit f1fab33c8d
2 changed files with 46 additions and 0 deletions

View File

@@ -8,4 +8,20 @@
{% if profile.user != current_user %}
<a href="{{ url_for('follow_user', username=profile.user.username) }}">{% trans %}Follow{% endtrans %}
{% endif %}
<h2>
{% trans %}Follows{% endtrans %}
</h2>
{% for followed in profile.followed_list %}
{{ followed }}
{% endfor %}
<h2>
{% trans %}Followers{% endtrans %}
</h2>
{% for follower in profile.follower_list %}
{{ follower }}
{% endfor %}
{% endblock content %}