2022-11-15 17:30:30 -08:00
|
|
|
{% if post.pk in interactions.like %}
|
2022-12-07 08:12:43 -08:00
|
|
|
<a title="Unlike" class="active" hx-post="{{ post.urls.action_unlike }}" hx-swap="outerHTML" role="menuitem">
|
2022-11-15 17:30:30 -08:00
|
|
|
<i class="fa-solid fa-star"></i>
|
|
|
|
</a>
|
|
|
|
{% else %}
|
2022-12-07 08:12:43 -08:00
|
|
|
<a title="Like" hx-post="{{ post.urls.action_like }}" hx-swap="outerHTML" role="menuitem">
|
2022-11-15 17:30:30 -08:00
|
|
|
<i class="fa-solid fa-star"></i>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|