<%= compact_time(post.created_at) %> User <%= link_to(post.uploader_name, user_path(post.uploader_id)) %> Rating <%= post.rating %> Score <%= post.score %> <% if CurrentUser.user.is_privileged? %> (vote <%= link_to("up", post_votes_path(:score => "up", :post_id => post.id), :remote => true, :method => :post) %>/<%= link_to("down", post_votes_path(:score => "down", :post_id => post.id), :remote => true, :method => :post) %>) <% end %>
Tags <% post.tag_array.each do |tag_name| %> <%= link_to(tag_name.tr("_", " "), posts_path(:tags => tag_name)) %> <% end %>
<% if post.comments.count > 6 %> <%= link_to "#{pluralize(post.comments.size, 'comment')} hidden", comments_path(:post_id => post.id), :remote => true %>. <% end %> <% if post.comments.hidden(CurrentUser.user).count > 0 %> <%= link_to "#{pluralize(post.comments.hidden(CurrentUser.user).count, 'comment')} below threshold", comments_path(:post_id => post.id, :include_hidden => true), :remote => true %>. <% end %>