From d6e48f9a21392519ccf2030110f287515657afd2 Mon Sep 17 00:00:00 2001 From: Adam Kelly Date: Mon, 24 Feb 2020 15:23:14 +0000 Subject: [PATCH] Displaying following as well as followers on user profile. --- fedireads/templates/user.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/fedireads/templates/user.html b/fedireads/templates/user.html index a71a565e7..79605dbef 100644 --- a/fedireads/templates/user.html +++ b/fedireads/templates/user.html @@ -25,12 +25,25 @@ {% for follower in user.followers.all %}
{{ follower.username }} - {% if not request.user in follower.followers.all %} + {% if not request.user in follower.followers.all and request.user != follower %} {% include 'snippets/follow_button.html' with user=follower %} {% endif %}
{% endfor %} + +
+

Following

+ {% for following in user.following.all %} +
+ {{ following.username }} + {% if not request.user in following.followers.all and request.user != following %} + {% include 'snippets/follow_button.html' with user=following %} + {% endif %} +
+ {% endfor %} +
+