From d40acc4e254bdf0da2eb5d1dc93eaf563db58eea Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 18 Jun 2017 22:36:20 -0500 Subject: [PATCH] /comments: add IDs differentiating group_by=post/group_by=comment (fixes #3152). --- app/views/comments/_index_by_comment.html.erb | 2 +- app/views/comments/_index_by_post.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/comments/_index_by_comment.html.erb b/app/views/comments/_index_by_comment.html.erb index 6f7b13eae..b72e760dc 100644 --- a/app/views/comments/_index_by_comment.html.erb +++ b/app/views/comments/_index_by_comment.html.erb @@ -1,4 +1,4 @@ -
+
<% @comments.each do |comment| %> <% if CurrentUser.is_moderator? || !comment.is_deleted? %> diff --git a/app/views/comments/_index_by_post.html.erb b/app/views/comments/_index_by_post.html.erb index 53847370e..a8966259a 100644 --- a/app/views/comments/_index_by_post.html.erb +++ b/app/views/comments/_index_by_post.html.erb @@ -1,4 +1,4 @@ -
+
<% if !CurrentUser.user.is_builder? %>

Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.