- <% if comment.hidden? || comment.user.hidden? %>
- <% if select_children(@comments, comment).size > 0 %>
-
- <% end %>
- <% else %>
- <% if comment.as_administrator? %>
- <%= image_tag("admin_avatar.png", size: 32, class: "admin-avatar left") %>
- <% elsif comment.as_moderator? %>
- <%= image_tag("moderator_avatar.png", size: 32, class: "moderator-avatar left") %>
- <% else %>
- <% if comment.user.organization? %>
- <%= image_tag("collective_avatar.png", size: 32, class: "avatar left") %>
- <% else %>
- <%= avatar_image(comment.user, seed: comment.user_id, size: 32, class: "left") %>
- <% end %>
- <% if comment.user.hidden? %>
-
-
-
- <% if comment.as_administrator? %>
-
- <% elsif comment.as_moderator? %>
-
- <% elsif comment.user.official? && comment.user_id == @commentable.author_id %>
-
- <% elsif comment.user.official? %>
-
- <% elsif comment.user_id == @commentable.author_id %>
-
- <% else %>
-
- <% end %>
-
-
-
- <%= t("debates.comment.responses", count: select_children(@comments, comment).size) %>
-
- <% if user_signed_in? %>
- |
- <%= link_to(comment_link_text(comment), "",
- class: "js-add-comment-link", data: {'id': dom_id(comment)}) %>
-
- <%= render 'comments/actions', comment: comment %>
-
- <%= render 'comments/form', {commentable: @commentable, parent_id: comment.id, toggeable: true} %>
- <% end %>
-
+ <% if comment.hidden? || comment.user.hidden? %>
+ <% if select_children(@comments, comment).size > 0 %>
+
+
<%= t("debates.comment.deleted") %>
<% end %>
-<% end %>
-
+
+
+
+
+ <% if comment.as_administrator? %>
+
+ <% elsif comment.as_moderator? %>
+
+ <% elsif comment.user.official? && comment.user_id == @commentable.author_id %>
+
+ <% elsif comment.user.official? %>
+
+ <% elsif comment.user_id == @commentable.author_id %>
+
+ <% else %>
+
+ <% end %>
+
+
+
+ <%= t("debates.comment.responses", count: select_children(@comments, comment).size) %>
+
+ <% if user_signed_in? %>
+ |
+ <%= link_to(comment_link_text(comment), "",
+ class: "js-add-comment-link", data: {'id': dom_id(comment)}) %>
+
+ <%= render 'comments/actions', comment: comment %>
+
+ <%= render 'comments/form', {commentable: @commentable, parent_id: comment.id, toggeable: true} %>
+ <% end %>
+
+
+ <% end %>
+
+
<%= comment.body %>
- <% elsif comment.as_moderator? %> -<%= comment.body %>
- <% elsif comment.user.official? && comment.user_id == @commentable.author_id %> -<%= comment.body %>
- <% elsif comment.user.official? %> -<%= comment.body %>
- <% elsif comment.user_id == @commentable.author_id %> -<%= comment.body %>
- <% else %> -<%= comment.body %>
- <% end %> - - <%= render 'comments/votes', comment: comment %> - - -<%= t("debates.comment.deleted") %>
<%= comment.body %>
+ <% elsif comment.as_moderator? %> +<%= comment.body %>
+ <% elsif comment.user.official? && comment.user_id == @commentable.author_id %> +<%= comment.body %>
+ <% elsif comment.user.official? %> +<%= comment.body %>
+ <% elsif comment.user_id == @commentable.author_id %> +<%= comment.body %>
+ <% else %> +<%= comment.body %>
+ <% end %> + + <%= render 'comments/votes', comment: comment %> + + +