Colors for follow/unfollow buttons

This commit is contained in:
Mouse Reeve 2020-11-05 12:09:05 -08:00
parent a48bb5a16e
commit 632ef258b7

View file

@ -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 %}