<h4><%= t('.title') %></h4>

<table width="100%" class="highlightable">
  <thead>
    <tr>
<!--      <th width="5%">Resolved</th> -->
      <th width="5%"><%= t('.post') %></th>
      <th width="10%"><%= t('.user') %></th>
      <th width="45%"><%= t('.tags') %></th>
      <th width="35%"><%= t('.reason') %></th>
      <% if @current_user.is_mod_or_higher? %>
      <th width="1*"><%= t('.by') %></th>
      <% end %>
    </tr>
  </thead>
  <tbody>
    <% @posts.each do |post| %>
      <tr class="<%= cycle 'even', 'odd' %>">
<!--        <td><%= post.flag_detail.is_resolved? %></td> -->
        <td><%= link_to post.id, { :action => "show", :id => post.id }, :rel => 'nofollow' %></td>
        <td><%= link_to h(post.author), { :controller => "user", :action => "show", :id => post.user_id }, :rel => 'nofollow' %></td>
        <td><%= h(post.cached_tags) %></td>
        <td><%= h(post.flag_detail.reason) %></td>
        <% if @current_user.is_mod_or_higher? %>
        <td><%= link_to h(post.flag_detail.author), :controller => "user", :action => "show", :id => post.flag_detail.user_id %></td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>

<div id="paginator">
  <%= will_paginate(@posts) %>
</div>

<%= render :partial => "footer" %>
