diff --git a/app/views/legislation/annotations/_comments_for.html.erb b/app/views/legislation/annotations/_comments_box.html.erb similarity index 100% rename from app/views/legislation/annotations/_comments_for.html.erb rename to app/views/legislation/annotations/_comments_box.html.erb diff --git a/app/views/legislation/annotations/comments.js.erb b/app/views/legislation/annotations/comments.js.erb index a058b00da..6ee83560e 100644 --- a/app/views/legislation/annotations/comments.js.erb +++ b/app/views/legislation/annotations/comments.js.erb @@ -1,2 +1,2 @@ -$("#comments-box").html("<%= j render('comments_for', annotation: @annotation) %>"); +$("#comments-box").html("<%= j render('comments_box', annotation: @annotation) %>"); diff --git a/app/views/legislation/annotations/show.html.erb b/app/views/legislation/annotations/show.html.erb index 6bf499f52..cdfa04447 100644 --- a/app/views/legislation/annotations/show.html.erb +++ b/app/views/legislation/annotations/show.html.erb @@ -27,7 +27,7 @@ - <%= render 'comments', commentable: @annotation %> + <%= render 'legislation/shared/comments', commentable: @annotation %> diff --git a/app/views/legislation/questions/_comments.html.erb b/app/views/legislation/questions/_comments.html.erb deleted file mode 100644 index c7b9591e8..000000000 --- a/app/views/legislation/questions/_comments.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -<% cache [locale_and_user_status, @current_order, commentable_cache_key(@question), @comment_tree.comments, @comment_tree.comment_authors, @question.comments_count, @comment_flags] do %> -
- <%= t("legislation.questions.show.comments") %> - (<%= @question.comments_count %>) -
- - <%= render 'shared/wide_order_selector', i18n_namespace: "comments" %> - - <% if user_signed_in? %> - <%= render 'comments/form', {commentable: @question, parent_id: nil, toggeable: false} %> - <% else %> -- -