diff --git a/appview/pages/templates/strings/string.html b/appview/pages/templates/strings/string.html index c1a50f35..20c4c878 100644 --- a/appview/pages/templates/strings/string.html +++ b/appview/pages/templates/strings/string.html @@ -30,31 +30,34 @@ -
- {{ if and .LoggedInUser (eq .LoggedInUser.Did .String.Did) }} - - {{ i "pencil" "w-4 h-4" }} - - {{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }} - - - {{ end }} - {{ template "fragments/starBtn" - (dict "SubjectAt" .String.AtUri - "IsStarred" .IsStarred - "StarCount" .StarCount) }} + {{ $isOwner := and .LoggedInUser (eq .LoggedInUser.Did .String.Did) }} +
+ {{ if $isOwner }} + + {{ i "pencil" "w-4 h-4" }} + + {{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }} + + + {{ end }} +
+ {{ template "fragments/starBtn" + (dict "SubjectAt" .String.AtUri + "IsStarred" .IsStarred + "StarCount" .StarCount) }} +