Display 'send follow request' instead of follow if user approves followers #86

This commit is contained in:
Adam Kelly 2020-03-14 14:09:10 +00:00
parent 1cdd7ea1fc
commit 8f7c5035e4

View file

@ -6,7 +6,11 @@ Follow request already sent.
<form action="/follow/" method="post">
{% csrf_token %}
<input type="hidden" name="user" value="{{ user.username }}"></input>
<input type="submit" value="Follow"></input>
{% if user.manually_approves_followers %}
<input type="submit" value="Send follow request"></input>
{% else %}
<input type="submit" value="Follow"></input>
{% endif %}
</form>
{% else %}
<form action="/unfollow/" method="post">