2021-05-11 17:41:28 -04:00
|
|
|
{% load interaction %}
|
|
|
|
{% load utilities %}
|
2021-02-27 21:48:10 -05:00
|
|
|
{% load i18n %}
|
2020-12-18 12:30:08 -05:00
|
|
|
|
2020-11-07 21:59:38 -05:00
|
|
|
{% with status.id|uuid as uuid %}
|
2021-04-07 11:31:00 -04:00
|
|
|
<form name="boost" action="/boost/{{ status.id }}" method="post" class="interaction boost-{{ status.id }}-{{ uuid }} {% if request.user|boosted:status %}is-hidden{% endif %}" data-id="boost-{{ status.id }}-{{ uuid }}">
|
2020-11-05 14:40:03 -05:00
|
|
|
{% csrf_token %}
|
2021-04-21 16:32:14 -04:00
|
|
|
<button class="button is-small is-light is-transparent" type="submit" {% if not status.boostable %}disabled{% endif %}>
|
|
|
|
<span class="icon icon-boost m-0-mobile" title="{% trans 'Boost' %}"></span>
|
|
|
|
<span class="is-sr-only-mobile">{% trans "Boost" %}</span>
|
2020-11-05 14:40:03 -05:00
|
|
|
</button>
|
|
|
|
</form>
|
2021-04-07 11:31:00 -04:00
|
|
|
<form name="unboost" action="/unboost/{{ status.id }}" method="post" class="interaction boost-{{ status.id }}-{{ uuid }} active {% if not request.user|boosted:status %}is-hidden{% endif %}" data-id="boost-{{ status.id }}-{{ uuid }}">
|
2020-11-05 14:40:03 -05:00
|
|
|
{% csrf_token %}
|
2021-04-21 16:32:14 -04:00
|
|
|
<button class="button is-small is-light is-transparent" type="submit">
|
|
|
|
<span class="icon icon-boost has-text-primary m-0-mobile" title="{% trans 'Un-boost' %}"></span>
|
|
|
|
<span class="is-sr-only-mobile">{% trans "Un-boost" %}</span>
|
2020-11-05 14:40:03 -05:00
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{% endwith %}
|