2022-12-21 18:40:46 -08:00
|
|
|
{% if post.pk in interactions.boost %}
|
2023-01-08 11:20:05 -08:00
|
|
|
<a title="Unboost" class="active" hx-trigger="click, keyup[key=='Enter']" hx-post="{{ post.urls.action_unboost }}" hx-swap="outerHTML" tabindex="0">
|
2022-12-23 21:16:26 -08:00
|
|
|
<i class="fa-solid fa-retweet"></i>
|
2022-12-31 12:48:35 -08:00
|
|
|
<span class="like-count">{{ post.stats_with_defaults.boosts }}</span>
|
2022-12-21 18:40:46 -08:00
|
|
|
</a>
|
|
|
|
{% else %}
|
2023-01-08 11:20:05 -08:00
|
|
|
<a title="Boost" hx-trigger="click, keyup[key=='Enter']" hx-post="{{ post.urls.action_boost }}" hx-swap="outerHTML" tabindex="0">
|
2022-12-23 21:16:26 -08:00
|
|
|
<i class="fa-solid fa-retweet"></i>
|
2022-12-31 12:48:35 -08:00
|
|
|
<span class="like-count">{{ post.stats_with_defaults.boosts }}</span>
|
2022-12-21 18:40:46 -08:00
|
|
|
</a>
|
|
|
|
{% endif %}
|