/comments: add IDs differentiating group_by=post/group_by=comment (fixes #3152).

This commit is contained in:
evazion
2017-06-18 22:36:20 -05:00
parent 87da9ec873
commit d40acc4e25
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
<div class="comments-for-post"> <div id="p-index-by-comment" class="comments-for-post">
<div class="list-of-comments"> <div class="list-of-comments">
<% @comments.each do |comment| %> <% @comments.each do |comment| %>
<% if CurrentUser.is_moderator? || !comment.is_deleted? %> <% if CurrentUser.is_moderator? || !comment.is_deleted? %>

View File

@@ -1,4 +1,4 @@
<div> <div id="p-index-by-post">
<% if !CurrentUser.user.is_builder? %> <% if !CurrentUser.user.is_builder? %>
<div style="margin-bottom: 1em;"> <div style="margin-bottom: 1em;">
<h2>Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.</h2> <h2>Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.</h2>