<% @comments.each do |comment| %> <% if CurrentUser.is_moderator? || !comment.is_deleted? %>
>
<% if comment.post.visible? %> <%= link_to(image_tag(comment.post.preview_file_url), post_path(comment.post)) %> <% end %>
<%= render :partial => "comments/partials/show/comment", :collection => [comment] %>
<% end %> <% end %>
<%= numbered_paginator(@comments) %> <% content_for(:html_header, auto_discovery_link_tag(:atom, comments_url(:atom, search: params[:search]), title: "Comments")) %>