mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-29 16:40:28 +00:00
11 lines
639 B
HTML
11 lines
639 B
HTML
{% if post.pk in interactions.boost %}
|
|
<a title="Unboost" class="active" hx-post="{{ post.urls.action_unboost }}" hx-swap="outerHTML">
|
|
<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>
|
|
</a>
|
|
{% else %}
|
|
<a title="Boost" hx-post="{{ post.urls.action_boost }}" hx-swap="outerHTML">
|
|
<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>
|
|
</a>
|
|
{% endif %}
|