Sha256: 4be865f96d867ceccf157c524bfcfa4f4d62fbb1e8e32594e295de0a0a12892c

Contents?: true

Size: 1.67 KB

Versions: 6

Compression:

Stored size: 1.67 KB

Contents

<% if failed_multiple_queues? && !params[:queue] %>
<h1>All Failed Queues: <%= Resque::Failure.queues.size %> total</h1>
<% else %>
<h1>Failed Jobs <%= "on '#{escape_html(params[:queue])}'" if params[:queue] %> <%= "with class '#{escape_html(params[:class])}'" if params[:class] %></h1>
<% end %>

<% unless failed_size.zero? %>
<form method="POST" action="<%= u "failed#{'/' + params[:queue] if params[:queue]}/clear" %>">
  <input type="submit" name="" value="Clear <%= params[:queue] ? "'#{escape_html(params[:queue])}'" : 'Failed' %> Jobs" class="confirmSubmission" />
</form>

<% unless params[:queue] %>
  <form method="POST" action="<%= u "failed/clear_retried" %>">
    <input type="submit" name="" value="Clear Retried Jobs" onclick='return confirm("Are you absolutely sure? This cannot be undone.");' />
  </form>
<% end %>
<form method="POST" action="<%= u "failed#{'/' + params[:queue] if params[:queue]}/requeue/all" %>">
  <input type="submit" name="" value="Retry <%= params[:queue] ? "'#{escape_html(params[:queue])}'" : 'Failed' %> Jobs" class="confirmSubmission" />
</form>
<% end %>

<% if failed_multiple_queues? && !params[:queue] %>
<%= partial :failed_queues_overview %>
<% else %>
<p class='sub'><%= page_entries_info failed_start_at, failed_end_at, failed_size, 'job' %></p>


<ul class='failed'>
  <% Resque::Failure.each(failed_start_at, failed_per_page, params[:queue], params[:class], failed_order) do |id, job| %>
    <%= partial :failed_job, :id => id, :job => job, :queue => "failed#{'/' + params[:queue] if params[:queue]}" %>
  <% end %>
</ul>

<%= partial :next_more, :start => failed_start_at, :size => failed_size, :per_page => failed_per_page if failed_size > 0 %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
resque-2.7.0 lib/resque/server/views/failed.erb
resque-2.6.0 lib/resque/server/views/failed.erb
resque-2.5.0 lib/resque/server/views/failed.erb
resque-2.4.0 lib/resque/server/views/failed.erb
resque-2.3.0 lib/resque/server/views/failed.erb
resque-2.2.1 lib/resque/server/views/failed.erb