mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 23:30:59 +00:00
11 lines
654 B
HTML
11 lines
654 B
HTML
{% if post.pk in interactions.like %}
|
|
<a title="Unlike" class="active" hx-post="{{ post.urls.action_unlike }}" hx-swap="outerHTML" role="menuitem">
|
|
<i class="fa-solid fa-star"></i>
|
|
<span class="like-count">{% if event.like_count is not None %}{{ event.like_count }}{% else %}{{ post.like_count }}{% endif %}</span>
|
|
</a>
|
|
{% else %}
|
|
<a title="Like" hx-post="{{ post.urls.action_like }}" hx-swap="outerHTML" role="menuitem">
|
|
<i class="fa-solid fa-star"></i>
|
|
<span class="like-count">{% if event.like_count is not None %}{{ event.like_count }}{% else %}{{ post.like_count }}{% endif %}</span>
|
|
</a>
|
|
{% endif %}
|