summaryrefslogtreecommitdiffstats
path: root/templates/activities/_like.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/activities/_like.html')
-rw-r--r--templates/activities/_like.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/activities/_like.html b/templates/activities/_like.html
new file mode 100644
index 0000000..8eec8cd
--- /dev/null
+++ b/templates/activities/_like.html
@@ -0,0 +1,9 @@
+{% 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 %}