<% @comments.each do |comment| %> <% if CurrentUser.is_moderator? || (params[:search] && params[:search][:is_deleted] =~ /t/) || !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(format: "atom"), title: "Comments")) %>