diff --git a/app/views/cards/comments/reactions/_reaction.html.erb b/app/views/cards/comments/reactions/_reaction.html.erb index d88ed4fae..61a799e32 100644 --- a/app/views/cards/comments/reactions/_reaction.html.erb +++ b/app/views/cards/comments/reactions/_reaction.html.erb @@ -1,25 +1,24 @@ -<% cache reaction do %> -
-
- <%= avatar_tag reaction.reacter, aria: { label: "#{reaction.reacter.name} reacted #{reaction.content}" } %> -
+
+
+ <%= avatar_tag reaction.reacter, aria: { label: "#{reaction.reacter.name} reacted #{reaction.content}" } %> +
- <%= tag.span reaction.content, role: "button", - class: [ "txt-small", { "txt-medium": reaction.all_emoji? } ], - data: { action: "click->reaction-delete#reveal keydown.enter->reaction-delete#reveal:prevent", reaction_delete_target: "content" } %> + <%= tag.span reaction.content, role: "button", + class: [ "txt-small", { "txt-medium": reaction.all_emoji? } ], + data: { action: "click->reaction-delete#reveal keydown.enter->reaction-delete#reveal:prevent", reaction_delete_target: "content" } %> - <%= button_to card_comment_reaction_path(comment.card, comment, reaction), - method: :delete, - class: "btn btn--negative flex-item-justify-end reaction__delete", - data: { action: "reaction-delete#perform", reaction_delete_target: "button" } do %> - <%= icon_tag "minus" %> - Delete this reaction - <% end %> -
- Press enter to delete this reaction -<% end %> + <%= button_to card_comment_reaction_path(comment.card, comment, reaction), + method: :delete, + class: "btn btn--negative flex-item-justify-end reaction__delete", + data: { action: "reaction-delete#perform", reaction_delete_target: "button" } do %> + <%= icon_tag "minus" %> + Delete this reaction + <% end %> +
+ +Press enter to delete this reaction diff --git a/app/views/cards/comments/reactions/_reactions.html.erb b/app/views/cards/comments/reactions/_reactions.html.erb index 06db43d01..9ff21b3d7 100644 --- a/app/views/cards/comments/reactions/_reactions.html.erb +++ b/app/views/cards/comments/reactions/_reactions.html.erb @@ -1,7 +1,7 @@ <%= turbo_frame_tag comment, :reacting do %>
- <%= render partial: "cards/comments/reactions/reaction", collection: comment.reactions.ordered, locals: { comment: comment }, cached: true %> + <%= render partial: "cards/comments/reactions/reaction", collection: comment.reactions.ordered, locals: { comment: comment } %>
<%= turbo_frame_tag comment, :new_reaction do %>