Sha256: ed9e9a1429eb84a83b325d350d46c8d54cf21c95312bd94356c9a808fb3e0921
Contents?: true
Size: 1.45 KB
Versions: 3
Compression:
Stored size: 1.45 KB
Contents
<% title 'Jobs' %> <div class="page-header"> <h1><%= title %></h1> </div> <table class="table table-bordered"> <thead> <tr> <th>ID</th> <th>Status</th> <th>Created At</th> <th>Run At</th> <th>Attempts</th> <th style="width: 190px;">Last Error</th> <th style="width: 115px;">Actions</th> </tr> </thead> <tbody> <% if jobs.any? %> <% jobs.each do |job| %> <tr> <td><%= link_to "##{job.id}", job_path(job) %></td> <td> <span class="<%= status_dom_class(job.status) %>"> <%= job.status.capitalize %> </span> </td> <td><%= job.created_at %></td> <td><%= job.run_at %></td> <td><%= job.attempts %></td> <td><%= link_to_if job.last_error.present?, truncate(job.last_error), job_path(job) %></td> <td> <% if job.can_queue? %> <%= button_to 'Run Next', queue_job_path(job), method: :put, class: 'btn btn-mini', form_class: 'btn-rails pull-left' %> <% end %> <% if job.can_destroy? %> <%= button_to 'Delete', job_path(job), method: :delete, class: 'btn btn-danger btn-mini', form_class: 'btn-rails pull-right' %> <% end %> </td> </tr> <% end %> <% else %> <tr> <td colspan="7"> An empty queue is a good queue. </td> </tr> <% end %> </tbody> </table>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
delayed-web-0.4.1 | app/views/delayed/web/jobs/index.html.erb |
delayed-web-0.4.0 | app/views/delayed/web/jobs/index.html.erb |
delayed-web-0.3.0 | app/views/delayed/web/jobs/index.html.erb |