From 5d5849cdef3d617c7455f7223dd829dc3fe24c8c Mon Sep 17 00:00:00 2001 From: trisua Date: Wed, 14 May 2025 20:03:21 -0400 Subject: [PATCH] fix: post likes page --- crates/app/src/public/html/post/likes.html | 18 +++++++++++++++--- crates/app/src/public/html/post/post.html | 6 +++--- crates/app/src/public/html/post/quotes.html | 4 ++-- crates/app/src/public/html/post/reposts.html | 4 ++-- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/crates/app/src/public/html/post/likes.html b/crates/app/src/public/html/post/likes.html index 90f132d..f1c826e 100644 --- a/crates/app/src/public/html/post/likes.html +++ b/crates/app/src/public/html/post/likes.html @@ -40,9 +40,9 @@ - {% if (user and user.id == post.owner) or can_manage_posts %} {% if user and - user.id == post.owner %} + {% if (user and user.id == post.owner) or can_manage_posts %}
+ {% if user and user.id == post.owner %} {{ icon "pen" }} {{ text "communities:label.edit_content" }} @@ -61,7 +61,7 @@ {{ text "communities:label.likes" }}
-
+
{% for user in list %} {{ components::user_plate(user=user, secondary=true) }} @@ -71,4 +71,16 @@
+ + {% endblock %} diff --git a/crates/app/src/public/html/post/post.html b/crates/app/src/public/html/post/post.html index 0da0fee..f4536ba 100644 --- a/crates/app/src/public/html/post/post.html +++ b/crates/app/src/public/html/post/post.html @@ -80,10 +80,10 @@
- {% if (user and user.id == post.owner) or can_manage_posts %} {% if user and - user.id == post.owner %} + {% if (user and user.id == post.owner) or can_manage_posts %}
- + {% if user and user.id == post.owner %} + {{ icon "pen" }} {{ text "communities:label.edit_content" }} diff --git a/crates/app/src/public/html/post/quotes.html b/crates/app/src/public/html/post/quotes.html index 43e1321..7202025 100644 --- a/crates/app/src/public/html/post/quotes.html +++ b/crates/app/src/public/html/post/quotes.html @@ -40,9 +40,9 @@
- {% if (user and user.id == post.owner) or can_manage_posts %} {% if user and - user.id == post.owner %} + {% if (user and user.id == post.owner) or can_manage_posts %}
+ {% if user and user.id == post.owner %} {{ icon "pen" }} {{ text "communities:label.edit_content" }} diff --git a/crates/app/src/public/html/post/reposts.html b/crates/app/src/public/html/post/reposts.html index 1cac8bd..da84561 100644 --- a/crates/app/src/public/html/post/reposts.html +++ b/crates/app/src/public/html/post/reposts.html @@ -40,9 +40,9 @@
- {% if (user and user.id == post.owner) or can_manage_posts %} {% if user and - user.id == post.owner %} + {% if (user and user.id == post.owner) or can_manage_posts %}
+ {% if user and user.id == post.owner %} {{ icon "pen" }} {{ text "communities:label.edit_content" }}