From 81f274a31917c06344c71c532d151ad696769fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 26 Jun 2021 21:33:07 +0200 Subject: [PATCH] Render form to comment topics before the comments Just like we do in debates, proposals, ... We could argue whether it's better to have the form before or after the list of comments, but at the very least we should have some sort of consistency. --- app/views/topics/_comments.html.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/topics/_comments.html.erb b/app/views/topics/_comments.html.erb index abcaba601..46c31c727 100644 --- a/app/views/topics/_comments.html.erb +++ b/app/views/topics/_comments.html.erb @@ -4,14 +4,15 @@
<%= render "shared/wide_order_selector", i18n_namespace: "comments" %> - <%= render "comments/comment_list", comments: @comment_tree.root_comments %> - <%= paginate @comment_tree.root_comments %> - <% if user_signed_in? %> <%= render "comments/form", { commentable: @topic, parent_id: nil } %> <% else %> +
<%= render "shared/login_to_comment" %> <% end %> + + <%= render "comments/comment_list", comments: @comment_tree.root_comments %> + <%= paginate @comment_tree.root_comments %>
<% end %>