forked from mirrors/bookwyrm
Colors for follow/unfollow buttons
This commit is contained in:
parent
a48bb5a16e
commit
632ef258b7
1 changed files with 3 additions and 3 deletions
|
@ -11,14 +11,14 @@ Follow request already sent.
|
|||
{% csrf_token %}
|
||||
<input type="hidden" name="user" value="{{ user.username }}">
|
||||
{% if user.manually_approves_followers %}
|
||||
<button class="button is-small" type="submit">Send follow request</button>
|
||||
<button class="button is-small is-link is-light" type="submit">Send follow request</button>
|
||||
{% else %}
|
||||
<button class="button is-small" type="submit">Follow</button>
|
||||
<button class="button is-small is-link is-light" type="submit">Follow</button>
|
||||
{% endif %}
|
||||
</form>
|
||||
<form action="/unfollow/" method="POST" onsubmit="interact(event)" class="follow-{{ user.id }} {% if not request.user in user.followers.all %}hidden{%endif %}" data-id="follow-{{ user.id }}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="user" value="{{ user.username }}">
|
||||
<button class="button is-small" type="submit">Unfollow</button>
|
||||
<button class="button is-small is-danger is-light" type="submit">Unfollow</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue