<h1><%= size = Resque::Failure.count %> Jobs Failed</h1>
<h2>Showing <%= start = params[:start].to_i %> to <%= start + 20 %></h2>
<table>
  <tr>
    <th>Queue</th>
    <th>Worker</th>
    <th>Failed</th>
    <th>Class</th>
    <th>Args</th>
    <th>Error</th>
  </tr>
  <% for job in Resque::Failure.all(start, 20) %>
  <tr>
    <td><%= job['queue'] %></td>
    <td><a href="<%= url(:workers, job['worker']) %>"><%= job['worker']['to_s'].split(':')[0...2].join(':') %></a></td>
    <td><span class="time"><%= job['failed_at'] %></span></td>
    <td><%= job['payload']['class'] %></td>
    <td>
      <a href="#" class="backtrace"><%= Array(job['payload']['args']).size %></a>
      <pre style="display:none;"><%=h show_args(job['payload']['args']) %></pre>
    </td>
    <td>
      <a href="#" class="backtrace"><%= h(job['error']) %></a>
      <pre style="display:none;"><%=h job['backtrace'].join("\n") %></pre>
    </td>
  </tr>
  <% end %>
  <%= partial :next_more, :start => start, :size => size %>
</table>

<h1><%= size = Resque::Failure.count %> Jobs Failed</h1>
<h2>Showing <%= start = params[:start].to_i %> to <%= start + 20 %></h2>
<table>
  <tr>
    <th>Queue</th>
    <th>Worker</th>
    <th>Failed</th>
    <th>Class</th>
    <th>Args</th>
    <th>Error</th>
  </tr>
  <% for job in Resque::Failure.all(start, 20) %>
  <tr>
    <td><%= job['queue'] %></td>
    <td><a href="<= url(:workers, job['worker']) %>"><%= job['worker'].split(':')[0...2].join(':') %></a></td>
    <td><span class="time"><%= job['failed_at'] %></span></td>
    <td><%= job['payload']['class'] %></td>
    <td>
      <a href="#" class="backtrace"><%= Array(job['payload']['args']).size %></a>
      <pre style="display:none;"><%=h show_args(job['payload']['args']) %></pre>
    </td>
    <td>
      <a href="#" class="backtrace"><%= h(job['error']) %></a>
      <pre style="display:none;"><%=h job['backtrace'].join("\n") %></pre>
    </td>
  </tr>
  <% end %>
  <%= partial :next_more, :start => start, :size => size %>
</table>

Revert "fixes broken failures table"
Revert "fixes broken failures table"

This reverts commit ced2cf75b9070b1752fa18bd17ad2a20d9883e8b.
