2022-12-21 18:40:46 -08:00
|
|
|
{% if post.pk in interactions.boost %}
|
|
|
|
<a title="Unboost" class="active" hx-post="{{ post.urls.action_unboost }}" hx-swap="outerHTML">
|
2022-12-23 21:16:26 -08:00
|
|
|
<i class="fa-solid fa-retweet"></i>
|
|
|
|
<span class="like-count">{% if event.boost_count is not None %}{{ event.boost_count }}{% else %}{{ post.boost_count }}{% endif %}</span>
|
2022-12-21 18:40:46 -08:00
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<a title="Boost" hx-post="{{ post.urls.action_boost }}" hx-swap="outerHTML">
|
2022-12-23 21:16:26 -08:00
|
|
|
<i class="fa-solid fa-retweet"></i>
|
|
|
|
<span class="like-count">{% if event.boost_count is not None %}{{ event.boost_count }}{% else %}{{ post.boost_count }}{% endif %}</span>
|
2022-12-21 18:40:46 -08:00
|
|
|
</a>
|
|
|
|
{% endif %}
|