<% title t('delayed/web.views.jobs') %> <% if jobs.any? %> <% jobs.each do |job| %> <% end %> <% else %> <% end %>
<%= t('delayed/web.views.id') %> <%= t('delayed/web.views.status') %> <%= t('delayed/web.views.created_at') %> <%= t('delayed/web.views.run_at') %> <%= t('delayed/web.views.attempts') %> <%= t('delayed/web.views.last_error') %> <%= t('delayed/web.views.actions') %>
<%= link_to "##{job.id}", job_path(job) %> <%= t(job.status, scope: 'delayed/web.views.statuses').capitalize %> <%= l(job.created_at, format: :short) %> <%= l(job.run_at, format: :short) %> <%= job.attempts %> <% if job.last_error.present? %> <%= link_to truncate(job.last_error), job_path(job) %> <% else %> <%= t('delayed/web.views.errors.empty') %> <% end %> <% if job.can_queue? %> <%= button_to t('delayed/web.views.buttons.run_next'), queue_job_path(job), method: :put, class: 'btn btn-mini btn-action', form_class: 'btn-rails pull-left', title: t('delayed/web.views.buttons.run_next') %> <% end %> <% if job.can_destroy? %> <%= button_to t('delayed/web.views.buttons.delete'), job_path(job), method: :delete, class: 'btn btn-danger btn-mini btn-action', form_class: 'btn-rails pull-right', title: t('delayed/web.views.buttons.delete'), onclick: "return confirm('#{t('delayed/web.views.confirm.delete')}')" %> <% end %>
<%= t('delayed/web.views.queue.empty') %>