mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 08:41:00 +00:00
9 lines
462 B
HTML
9 lines
462 B
HTML
{% if post.pk in bookmarks %}
|
|
<a title="Unbookmark" class="active" hx-trigger="click, keyup[key=='Enter']" hx-post="{{ post.urls.action_unbookmark }}" hx-swap="outerHTML" tabindex="0">
|
|
<i class="fa-solid fa-bookmark"></i>
|
|
</a>
|
|
{% else %}
|
|
<a title="Bookmark" hx-trigger="click, keyup[key=='Enter']" hx-post="{{ post.urls.action_bookmark }}" hx-swap="outerHTML" tabindex="0">
|
|
<i class="fa-regular fa-bookmark"></i>
|
|
</a>
|
|
{% endif %}
|