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

<table width="100%" class="highlightable">
  <thead>
    <tr>
      <th width="5%"><%= t('.table.id') %></th>
      <th width="15%"><%= t('.table.type') %></th>
      <th width="10%"><%= t('.table.status') %></th>
      <th width="40%"><%= t('.table.data') %></th>
      <% if @current_user.is_mod_or_higher? %>
      <th width="30%"><%= t('.table.message') %></th>
      <% end %>
    </tr>
  </thead>
  <tbody>
    <% @job_tasks.each do |job_task| %>
      <tr>
        <td><%= job_task.id %></td>
        <td><%= link_to h(job_task.task_type), :action => "show", :id => job_task.id %></td>
        <td><%= h job_task.status %></td>
        <td><%= h job_task.pretty_data rescue "ERROR" %></td>
        <% if @current_user.is_mod_or_higher? %>
        <td><%= h job_task.status_message %></td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>

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