Sha256: 061944290e39982108690a60f554fb211318194b3705b17676573c49b8e41cd1

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

  <h1>Pending jobs on <span class='hl'><%= params[:id] %></span></h1>

  <%= form_tag(clear_queue_path(params[:id]), :method => :put) do %>
    <%= submit_tag "Clear Pending Jobs", :class => 'btn btn-danger', :data => { :confirm => "Are you absolutely sure? This cannot be undone." } %>
  <% end % %>

  <%= form_tag(queue_path(params[:id]), :method => :delete, :class => 'remove-queue') do %>
    <%= submit_tag "Remove Queue", :class => 'btn btn-danger', :data => { :confirm => "Are you absolutely sure? This cannot be undone." } %>
  <% end %>

  <p class="sub">Showing <%= queue_start_at %> to <%= queue_end_at %> of <b><%= queue_size %></b> jobs</p>
  <table class="table table-bordered jobs">
    <tr>
      <th>Class</th>
      <th>Args</th>
    </tr>
    <% queue_jobs.each do |job| %>
    <tr>
      <td class='class'><%= job['class'] %></td>
      <td class='args'><%=h job['args'].inspect %></td>
    </tr>
    <% end %>
    <% if queue_jobs.empty? %>
    <tr>
      <td class='no-data' colspan='2'>There are no pending jobs in this queue</td>
    </tr>
    <% end %>
  </table>

  <%= pagination :start => queue_start_at, :total => queue_size %>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
resque-web-0.0.7 app/views/resque_web/queues/show.html.erb
resque-web-clone-0.0.7 app/views/resque_web/queues/show.html.erb
resque-web-clone-0.0.6 app/views/resque_web/queues/show.html.erb