<%= content_tag :div, id: "comment_#{model.id}", class: comment_classes, data: { comment_id: model.id } do %> <% if model.hidden? %> <%= render :moderation_data %> <% elsif model.deleted? %> <%= render :deletion_data %> <% else %>
<%= render :author %> <%= time_tag created_at, l(created_at, format: :decidim_short) %> <% if edited? %>
<%= t("decidim.components.comment.edited") %>
<% end %>
<%= render :utilities %>
<%= alignment_badge %> <%= comment_body %>
<% end %>
<% if has_replies_in_children? %> <% replies.each do |reply| %> <%= cell("decidim/comments/comment", reply, root_depth: root_depth, order: order, reloaded: reloaded?) %> <% end %> <% end %>
<% if can_reply? %>
">
<%== cell("decidim/comments/comment_form", model, root_depth: root_depth, order: order) %>
<% end %> <% end %>