diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index 60670a3cd52..2df22c41421 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -34,85 +34,84 @@ <%= server_plugin_outlet "topic_header" %> <%- if include_crawler_content? %> - - <% @topic_view.posts.each_with_index do |post, idx| %> - <% if (u = post.user) %> -
-
-
- - <% if application_logo_url.present? %> -
- -
- <% end %> +
+ + '> +
+ + <% if application_logo_url.present? %> +
+
- - - - - <% if post.image_url %> - - <% end %> - - -
-
- <%= post.hidden ? t('flagging.user_must_edit').html_safe : post.cooked.html_safe %> -
- - - <% if idx == 0 %> - '> <% end %> - -
- - - <%= post.like_count > 0 ? t('post.has_likes', count: post.like_count) : '' %> -
- -
- - -
- - <% if @topic_view.link_counts[post.id] && @topic_view.link_counts[post.id].filter { |l| l[:reflection] }.length > 0 %> -
- <% @topic_view.link_counts[post.id].each_with_index do |link, i| %> - <% if link[:reflection] && link[:title].present? %> - - <% end %> - <% end %> -
- <% end %>
- <% end %> - <% end %> + + <% @topic_view.posts.each do |post| %> + <% if (u = post.user) %> +
class='topic-body crawler-post'> + +
'> + <%= post.hidden ? t('flagging.user_must_edit').html_safe : post.cooked.html_safe %> +
+ +
+ + + <%= post.like_count > 0 ? t('post.has_likes', count: post.like_count) : '' %> +
+ +
+ + +
+ + <% if @topic_view.link_counts[post.id] && @topic_view.link_counts[post.id].filter { |l| l[:reflection] }.length > 0 %> +
+ <% @topic_view.link_counts[post.id].each_with_index do |link, i| %> + <% if link[:reflection] && link[:title].present? %> + + <% end %> + <% end %> +
+ <% end %> +
+ <% end %> + <% end %> +
<% if @topic_view.prev_page || @topic_view.next_page %>