%= 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 %>
<% if can_reply? %>
<% 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 %>
<% unless reloaded? %>-
<%= cell("decidim/report_button", model, only_button: true, button_classes: "dropdown__item flex-row-reverse", modal_id: "flagModalComment#{model.id}") %>
<% end %>
-
<%= link_to "#{commentable_path("commentId" => model.id)}#comment_#{model.id}", target: "_blank", data: { "external-link": "text-only" }, class: "dropdown__item", title: t("decidim.components.comment.single_comment_link_title") do %>
<%= icon "share-line" %>
<%= t("decidim.components.comment.single_comment_link_title") %>
<% end %>
<% if model.authored_by?(current_user) %>
-
-
<%= link_to comment_path, remote: true, method: :delete, class: "dropdown__item", data: { confirm: t("decidim.components.comment.confirm_destroy") } do %>
<%= icon "delete-bin-line" %>
<%= t("decidim.components.comment.delete") %>
<% end %>
<% end %>