% if multiple_failure_queues? && !params[:queue] %>
All Failure Queues222
<% else %>
Failed Jobs222 <%= "on '#{params[:queue]}'" if params[:queue] %> <%= "with class '#{params[:class]}'" if params[:class] %>
<% end %>
<% unless failure_size.zero? %>
<%= form_tag(destroy_all_failures_path(queue: params[:queue]), method: :delete) do %>
<%= submit_tag "Clear #{failure_queue_name} Jobs", class: 'btn btn-danger', data: { confirm: "Are you sure you want to clear ALL #{failure_queue_name.downcase} jobs?" } %>
<% if failure_size > failure_per_page %>
<%= link_to "Last page »".html_safe, { start: (failure_size - failure_per_page) }, class: 'btn' %>
<% end %>
<% end %>
<%= form_tag(retry_all_failures_path(queue: params[:queue]), method: :put) do %>
<%= submit_tag "Retry #{failure_queue_name} Jobs", class: 'btn', data: { confirm: "Are you sure you want to retry ALL #{failure_queue_name.downcase} jobs?" } %>
<% end %>
<% end %>
<% if multiple_failure_queues? && !params[:queue] %>
<%= Resque::Failure.queues.size %> failure queues total
<%= render partial: 'overview' %>
<% else %>
Showing <%= failure_start_at %> to <%= failure_end_at %> of <%= failure_size %> jobs
<% each_failure do |id, job| %>
<%= render partial: 'failed_job', locals: { id: id, job: job } %>
<% end %>
<%= pagination(start: failure_start_at, total: failure_size) unless params[:class] %>
<% end %>