diff --git a/app/views/comments/_index_by_comment.html.erb b/app/views/comments/_index_by_comment.html.erb
index 01ebabe3f..236f21143 100644
--- a/app/views/comments/_index_by_comment.html.erb
+++ b/app/views/comments/_index_by_comment.html.erb
@@ -2,7 +2,7 @@
diff --git a/app/views/comments/_index_by_post.html.erb b/app/views/comments/_index_by_post.html.erb
index a8966259a..640d3ef23 100644
--- a/app/views/comments/_index_by_post.html.erb
+++ b/app/views/comments/_index_by_post.html.erb
@@ -11,7 +11,7 @@
<% @posts.select {|x| x.visible?}.each do |post| %>
<% if CurrentUser.is_moderator? || post.comments.undeleted.exists? %>
- >
+ <%= content_tag(:div, { id: "post_#{post.id}", class: ["post", *PostPresenter.preview_class(post)].join(" ") }.merge(PostPresenter.data_attributes(post))) do %>
<% if post.visible? %>
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
@@ -19,7 +19,7 @@
<%= render "comments/partials/index/list", :post => post, :comments => post.comments.visible(CurrentUser.user).recent.reverse, :show_header => true %>
-
+ <% end %>
<% end %>
<% end %>
diff --git a/app/views/comments/show.html.erb b/app/views/comments/show.html.erb
index 79ddc57a6..f07f52ef5 100644
--- a/app/views/comments/show.html.erb
+++ b/app/views/comments/show.html.erb
@@ -2,7 +2,7 @@
>
+<%= content_tag(:div, { id: "post-#{post.id}", class: ["post", "mod-queue-preview", *PostPresenter.preview_class(post)].join(" ") }.join(PostPresenter.data_attributes(post))) do %>
@@ -34,4 +34,4 @@
Tags: <%= post.presenter.inline_tag_list_html %>
-
+<% end %>
diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb
index 012e08e2c..2cd3b94d6 100644
--- a/app/views/posts/show.html.erb
+++ b/app/views/posts/show.html.erb
@@ -47,7 +47,7 @@
<%= render "posts/partials/show/notices", :post => @post %>
- <%= content_tag(:section, PostPresenter.data_attributes(@post).merge(id: "image-container")) do -%>
+ <%= content_tag(:section, { id: "image-container" }.merge(PostPresenter.data_attributes(@post))) do -%>