mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-24 22:30:28 +00:00
10 lines
338 B
HTML
10 lines
338 B
HTML
|
{% if post.pk in interactions.like %}
|
||
|
<a title="Unlike" class="active" hx-post="{{ post.urls.action_unlike }}" hx-swap="outerHTML">
|
||
|
<i class="fa-solid fa-star"></i>
|
||
|
</a>
|
||
|
{% else %}
|
||
|
<a title="Like" hx-post="{{ post.urls.action_like }}" hx-swap="outerHTML">
|
||
|
<i class="fa-solid fa-star"></i>
|
||
|
</a>
|
||
|
{% endif %}
|