2020-11-05 19:40:03 +00:00
|
|
|
{% load fr_display %}
|
2020-11-08 02:59:38 +00:00
|
|
|
{% with status.id|uuid as uuid %}
|
|
|
|
<form name="favorite" action="/favorite/{{ status.id }}" method="POST" onsubmit="return interact(event)" class="fav-{{ status.id }}-{{ uuid }} {% if request.user|liked:status %}hidden{% endif %}" data-id="fav-{{ status.id }}-{{ uuid }}">
|
2020-11-05 19:40:03 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<button class="button is-small" type="submit">
|
|
|
|
<span class="icon icon-heart">
|
|
|
|
<span class="is-sr-only">Like status</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
2020-11-08 02:59:38 +00:00
|
|
|
<form name="unfavorite" action="/unfavorite/{{ status.id }}" method="POST" onsubmit="return interact(event)" class="fav-{{ status.id }}-{{ uuid }} active {% if not request.user|liked:status %}hidden{% endif %}" data-id="fav-{{ status.id }}-{{ uuid }}">
|
2020-11-05 19:40:03 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<button class="button is-success is-small" type="submit">
|
|
|
|
<span class="icon icon-heart">
|
|
|
|
<span class="is-sr-only">Un-like status</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{% endwith %}
|