<% if !CurrentUser.user.is_builder? %>

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

<% end %> <% if @posts.blank? %> <%= render "post_sets/blank" %> <% end %> <% @posts.select(&:visible?).each do |post| %> <% if post.comments.visible(CurrentUser.user).any? || post.comments.hidden(CurrentUser.user).any? %> <%= content_tag(:div, { id: "post_#{post.id}", class: ["post", *PostPresenter.preview_class(post)].join(" ") }.merge(PostPresenter.data_attributes(post))) do %>
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
<%= render "comments/partials/index/list", post: post, comments: post.comments.visible(CurrentUser.user).last(6), page: :comments %> <% end %> <% end %> <% end %>
<%= numbered_paginator(@posts) %> <% content_for(:html_header, auto_discovery_link_tag(:atom, comments_url(:atom, search: { do_not_bump_post: true }), title: "Comments")) %>