2020-12-13 02:25:04 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2020-12-18 17:30:08 +00:00
|
|
|
|
2020-11-08 02:59:38 +00:00
|
|
|
{% with status.id|uuid as uuid %}
|
2021-01-14 22:38:33 +00:00
|
|
|
<form name="boost" action="/boost/{{ status.id }}" method="post" class="interaction boost-{{ status.id }}-{{ uuid }} {% if request.user|boosted:status %}hidden{% endif %}" data-id="boost-{{ status.id }}-{{ uuid }}">
|
2020-11-05 19:40:03 +00:00
|
|
|
{% csrf_token %}
|
2020-12-18 17:30:08 +00:00
|
|
|
<button class="button is-small" type="submit" {% if not status.boostable %}disabled{% endif %}>
|
2021-02-28 02:48:10 +00:00
|
|
|
<span class="icon icon-boost" title="{% trans 'Boost status' %}">
|
|
|
|
<span class="is-sr-only">{% trans "Boost status" %}</span>
|
2020-11-05 19:40:03 +00:00
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
2021-01-14 22:38:33 +00:00
|
|
|
<form name="unboost" action="/unboost/{{ status.id }}" method="post" class="interaction boost-{{ status.id }}-{{ uuid }} active {% if not request.user|boosted:status %}hidden{% endif %}" data-id="boost-{{ status.id }}-{{ uuid }}">
|
2020-11-05 19:40:03 +00:00
|
|
|
{% csrf_token %}
|
2021-02-24 01:23:11 +00:00
|
|
|
<button class="button is-small is-primary" type="submit">
|
2021-02-28 02:48:10 +00:00
|
|
|
<span class="icon icon-boost" title="{% trans 'Un-boost status' %}">
|
|
|
|
<span class="is-sr-only">{% trans "Un-boost status" %}</span>
|
2020-11-05 19:40:03 +00:00
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{% endwith %}
|