1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/views/scheduled.slim
Brandon Hilkert cbfa33cedc Manage the retrying/deleting of jobs in the Web UI through the 'jid'
rather than 'score' so as to avoid accidentally performing actions on
multiple jobs when only one was intended.
2012-11-26 11:24:24 -05:00

30 lines
940 B
Text
Executable file

header.row
.span5
h3 Scheduled Jobs
.span4
- if @scheduled.size > 0
== slim :_paging, :locals => { :url => "#{root_path}scheduled" }
- if @scheduled.size > 0
form action="#{root_path}scheduled" method="post"
table class="table table-striped table-bordered table-white"
thead
th width="20px"
input type="checkbox" class="check_all"
th width="25%" When
th width="10%" Queue
th Worker
th Args
- @scheduled.each do |msg, score|
tr
td
input type='checkbox' name='jid[]' value='#{msg['jid']}'
td== relative_time(Time.at(score))
td
a href="#{root_path}queues/#{msg['queue']}" #{msg['queue']}
td= msg['class']
td= display_args(msg['args'])
input.btn.btn-danger.pull-right type="submit" name="delete" value="Delete"
- else
.alert.alert-success No scheduled jobs were found