Moderator Dashboard
<% form_tag(moderator_ip_addrs_path, :method => :get) do %>
<%= text_field_tag "search[ip_addr_eq]", params[:ip_addrs] %>
<%= submit_tag "Search" %>
<% end %>
<% form_tag(moderator_ip_addrs_path, :method => :get) do %>
<%= text_field_tag "search[user_id_eq]", params[:user_ids] %>
<%= submit_tag "Search" %>
<% end %>
<% form_tag(moderator_dashboard_path, :method => :get) do %>
<%= text_field_tag :min_date, @dashboard.min_date %>
<%= user_level_select_tag(:max_level) %>
<%= submit_tag "Search" %>
<% end %>
Appealed Posts
| Post |
User |
Flags |
Appeals |
Score |
| <%= link_to "View all posts", :controller => "post_appeal", :action => "index" %> |
<% @dashboard.appealed_posts.each do |appeal| %>
| <%= link_to image_tag(appeal.post.preview_url), :controller => "post", :action => "show", :id => appeal.post.id %> |
<%= admin_link_to_user appeal.post.user, :negative %> |
<%= post_flag_summary(appeal.post) %> |
<%= post_appeal_summary(appeal.post) %> |
<%= appeal.post.score %> |
<% end %>
User Records
| User |
Message |
Date |
<% UserRecord.recent(@dashboard.min_date).all(:order => "id desc").each do |record| %>
| <%= link_to(record.user.name, :controller => "user", :action => "show", :id => record.user_id) %> |
<%= format_text(record.body) %> |
<%= time_ago_in_words(record.created_at) %> ago |
<% end %>
Mod Actions
| Moderator |
Description |
| <%= link_to "View all actions", :controller => "mod_action", :action => "index" %> |
<% ModAction.all(:order => "id desc", :limit => 10).each do |mod_action| %>
| <%= link_to mod_action.user.name, :controller => "user", :action => "show", :id => mod_action.user_id %> |
<%= format_text(mod_action.description) %> |
<% end %>