diff --git a/app/helpers/comments_helper.rb b/app/helpers/comments_helper.rb index 1bf679bb4..225748365 100644 --- a/app/helpers/comments_helper.rb +++ b/app/helpers/comments_helper.rb @@ -1,12 +1,4 @@ module CommentsHelper - def comment_tree_title_text(commentable) - if commentable.class == Legislation::Question - t("legislation.questions.comments.comments_title") - else - t("comments_helper.comments_title") - end - end - def leave_comment_text(commentable) if commentable.class == Legislation::Question t("legislation.questions.comments.form.leave_comment") diff --git a/app/views/comments/_comment_tree.html.erb b/app/views/comments/_comment_tree.html.erb index 84204c907..8bf774553 100644 --- a/app/views/comments/_comment_tree.html.erb +++ b/app/views/comments/_comment_tree.html.erb @@ -4,25 +4,8 @@ diff --git a/app/views/valuation/budget_investments/_valuation_comments.html.erb b/app/views/valuation/budget_investments/_valuation_comments.html.erb index 713727bb3..397f9af9b 100644 --- a/app/views/valuation/budget_investments/_valuation_comments.html.erb +++ b/app/views/valuation/budget_investments/_valuation_comments.html.erb @@ -1,6 +1,4 @@
- <%= comment_tree_title_text(commentable) %> - (<%= commentable.comments_count %>) -
- <% end %> - <% if user_signed_in? %> - <% if comments_closed_for_commentable?(commentable) %> --
-
+
+