% if failed_multiple_queues? && !params[:queue] %>
All Failed Queues: <%= Resque::Failure.queues.size %> total
<% else %>
Failed Jobs <%= "on '#{params[:queue]}'" if params[:queue] %> <%= "with class '#{params[:class]}'" if params[:class] %>
<% end %>
<% unless failed_size.zero? %>
<% end %>
<% if failed_multiple_queues? && !params[:queue] %>
<%= partial :failed_queues_overview %>
<% else %>
Showing <%= failed_start_at %> to <%= failed_end_at %> of <%= failed_size %> jobs
<% Resque::Failure.each(failed_start_at, failed_per_page, params[:queue], params[:class]) do |id, job| %>
<%= partial :failed_job, :id => id, :job => job %>
<% end %>
<%= partial :next_more, :start => failed_start_at, :size => failed_size, :per_page => failed_per_page %>
<% end %>