mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 08:41:00 +00:00
11 lines
611 B
HTML
11 lines
611 B
HTML
{% if post.pk in interactions.boost %}
|
|
<a title="Unboost" class="active" hx-trigger="click, keyup[key=='Enter']" hx-post="{{ post.urls.action_unboost }}" hx-swap="outerHTML" tabindex="0">
|
|
<i class="fa-solid fa-retweet"></i>
|
|
<span class="like-count">{{ post.stats_with_defaults.boosts }}</span>
|
|
</a>
|
|
{% else %}
|
|
<a title="Boost" hx-trigger="click, keyup[key=='Enter']" hx-post="{{ post.urls.action_boost }}" hx-swap="outerHTML" tabindex="0">
|
|
<i class="fa-solid fa-retweet"></i>
|
|
<span class="like-count">{{ post.stats_with_defaults.boosts }}</span>
|
|
</a>
|
|
{% endif %}
|