Files
fizzy/app/helpers/comments_helper.rb
T
2025-04-09 14:50:58 +02:00

15 lines
465 B
Ruby

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