mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 00:26:33 +00:00
17 lines
553 B
HTML
17 lines
553 B
HTML
{% if request.user in user.follower_requests.all %}
|
|
<div>
|
|
Follow request already sent.
|
|
</div>
|
|
{% elif not request.user in user.followers.all %}
|
|
<form action="/follow/" method="post">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="user" value="{{ user.username }}"></input>
|
|
<input type="submit" value="Follow"></input>
|
|
</form>
|
|
{% else %}
|
|
<form action="/unfollow/" method="post">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="user" value="{{ user.username }}"></input>
|
|
<input type="submit" value="Unfollow"></input>
|
|
</form>
|
|
{% endif %}
|