<%= 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 %>
<% 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 %>