summaryrefslogtreecommitdiffstats
path: root/templates/activities/_like.html
blob: 07dc01dcccb8381b395ff15ddd7fc16b9a303f2d (plain)
1
2
3
4
5
6
7
8
9
{% 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>
    </a>
{% else %}
    <a title="Like" hx-post="{{ post.urls.action_like }}" hx-swap="outerHTML" role="menuitem">
        <i class="fa-solid fa-star"></i>
    </a>
{% endif %}