2020-11-05 19:40:03 +00:00
|
|
|
{% load fr_display %}
|
|
|
|
{% with activity.id|uuid as uuid %}
|
2020-11-08 02:18:44 +00:00
|
|
|
<form name="boost" action="/boost/{{ activity.id }}" method="post" onsubmit="return interact(event)" class="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 %}
|
|
|
|
<button class="button is-small" type="submit">
|
|
|
|
<span class="icon icon-boost">
|
|
|
|
<span class="is-sr-only">Boost status</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
2020-11-08 02:18:44 +00:00
|
|
|
<form name="unboost" action="/unboost/{{ activity.id }}" method="post" onsubmit="return interact(event)" class="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 %}
|
|
|
|
<button class="button is-small is-success" type="submit">
|
|
|
|
<span class="icon icon-boost">
|
|
|
|
<span class="is-sr-only">Un-boost status</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{% endwith %}
|