Files
fizzy/app/helpers/comments_helper.rb
T
Jason Zimdars 28a569c49b Tickets
2025-03-17 21:24:08 -05:00

15 lines
478 B
Ruby

module CommentsHelper
def comment_tag(comment, &)
tag.div id: dom_id(comment), class: "comment flex-inline align-start full-width",
data: { creator_id: comment.creator_id, created_by_current_user_target: "creation" }, &
end
def new_comment_placeholder(bubble)
if bubble.creator == Current.user && bubble.messages.comments.empty?
"Next, add some notes, context, pictures, or video about this…"
else
"Type your comment…"
end
end
end