2020-12-13 02:25:04 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2020-11-08 02:59:38 +00:00
|
|
|
{% with status.id|uuid as uuid %}
|
2021-04-07 15:31:00 +00:00
|
|
|
<form name="favorite" action="/favorite/{{ status.id }}" method="POST" class="interaction fav-{{ status.id }}-{{ uuid }} {% if request.user|liked:status %}is-hidden{% endif %}" data-id="fav-{{ status.id }}-{{ uuid }}">
|
2020-11-05 19:40:03 +00:00
|
|
|
{% csrf_token %}
|
2021-04-21 15:35:55 +00:00
|
|
|
<button class="button is-small is-white" type="submit">
|
2021-02-28 02:48:10 +00:00
|
|
|
<span class="icon icon-heart" title="{% trans 'Like status' %}">
|
2020-11-05 19:40:03 +00:00
|
|
|
</span>
|
2021-04-21 15:35:55 +00:00
|
|
|
<span>{% trans "Like status" %}</span>
|
2020-11-05 19:40:03 +00:00
|
|
|
</button>
|
|
|
|
</form>
|
2021-04-07 15:31:00 +00:00
|
|
|
<form name="unfavorite" action="/unfavorite/{{ status.id }}" method="POST" class="interaction fav-{{ status.id }}-{{ uuid }} active {% if not request.user|liked:status %}is-hidden{% endif %}" data-id="fav-{{ status.id }}-{{ uuid }}">
|
2020-11-05 19:40:03 +00:00
|
|
|
{% csrf_token %}
|
2021-04-21 15:35:55 +00:00
|
|
|
<button class="button is-white is-small" type="submit">
|
|
|
|
<span class="icon icon-heart has-text-primary" title="{% trans 'Un-like status' %}"></span>
|
|
|
|
<span>{% trans "Un-like status" %}</span>
|
2020-11-05 19:40:03 +00:00
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{% endwith %}
|