Moderation Queue

<% @posts.each do |post| %>
  • <%= link_to "Approve", post_moderation_approve_path(:post_id => post.id), :remote => true, :method => :put %> | <%= link_to "Disapprove", post_moderation_disapprove_path(:post_id => post.id), :remote => true, :method => :put %>
  • Rating: <%= post.pretty_rating %>
  • Score: <%= post.score %>
  • Uploader: <%= link_to(post.uploader.name, user_path(post.uploader_id)) %> <%= time_ago_in_words(post.created_at) %> ago
  • <% if post.is_flagged? %>
  • Flagged: <%= post.unapproval.reason %> by <%= post.unapproval.unapprover.name %>
  • <% end %>
  • Disapprovals: <%= post.disapprovals.count %>
  • Tags: <%= post.tag_string %>
<% end %>