Use hash for conditional class

This commit is contained in:
Alexander Zaytsev
2025-12-19 09:33:07 +01:00
parent 32a0acea11
commit cc6b5cba9c
+1 -1
View File
@@ -1,6 +1,6 @@
<% cache comment do %>
<%# Helper Dependency Updated: avatar_image_tag 2025-12-15 %>
<%= turbo_frame_tag comment, :container, class: ["comment--system": comment.creator.system?] do %>
<%= turbo_frame_tag comment, :container, class: { "comment--system": comment.creator.system? } do %>
<%# Cache bump 2025-12-14: action text attachment rendering changed for lightbox -%>
<div id="<%= dom_id(comment) %>" data-creator-id="<%= comment.creator_id %>" class="comment align-start full-width">
<figure class="comment__avatar flex-item-no-shrink" aria-hidden="true">