<% moderations.each do |mod| %> "> <% if mod.reason.present? %> <% end %> <% end %>
Date/Time Moderator Story/Comment/User/Tag/Category, Action, Reason
<%= raw mod.created_at.strftime("%Y-%m-%d %H:%M %z") %> <% if mod.moderator %> <%= mod.moderator.try(:username) %> <% elsif mod.is_from_suggestions? %> (Users) <% end %> <% if mod.story %> Story: <%= mod.story.title %> <% elsif mod.comment %> Comment by <%= mod.comment.user.username %> on <%= mod.comment.story.title %> <% elsif mod.tag %> <%= link_to("Tag: #{mod.tag.tag}", mod.tag) %> <% elsif mod.category %> <%= link_to("Category: #{mod.category.category}", mod.category) %> <% elsif mod.user_id %> <% if mod.user %> <%= link_to "User #{mod.user.username}", mod.user %> <% else %> User <%= mod.user_id %> (Deleted) <% end %> <% elsif mod.domain %> Domain <%= link_to mod.domain.domain, domain_path(mod.domain) %> <% end %>
Action: <%= mod.action %>
Reason: <%= mod.reason %>