<%= content_tag :div, id: "comment_#{model.id}", class: "comment relative", role: "comment", data: { comment_id: model.id, parent: parent_element_id } do %> <% if model.hidden? %> <%= render :moderation_data %> <% elsif model.deleted? %> <%= render :deletion_data %> <% else %>
<%= comment_label %>
<%== cell("decidim/author", author_presenter) %> <%= time_tag created_at, format: :decidim_short %> <% if edited? %> <%= t("decidim.components.comment.edited") %> <% end %>
<%= alignment_badge %>
<%= comment_body %>
<% if can_reply? %>
<%== cell("decidim/comments/comment_form", model, root_depth:, order:) %>
<% end %>
"> <% if has_replies_in_children? %> <%= render :replies %> <% end %>
<% end %> <% if current_user.present? %> <%= cell("decidim/report_button", model, modal_id: "flagModalComment#{model.id}").flag_modal %> <% end %> <% if model.authored_by?(current_user) %> <%= cell("decidim/comments/edit_comment_modal_form", model) %> <% end %> <% end %>