2012-09-30 14:57:51 +02:00
|
|
|
header.row
|
|
|
|
.span5
|
2013-04-04 20:51:59 -07:00
|
|
|
h3 = t('ScheduledJobs')
|
2012-09-30 14:57:51 +02:00
|
|
|
.span4
|
|
|
|
- if @scheduled.size > 0
|
|
|
|
== slim :_paging, :locals => { :url => "#{root_path}scheduled" }
|
2012-05-25 20:21:42 -07:00
|
|
|
|
|
|
|
- if @scheduled.size > 0
|
2012-07-17 22:14:15 -07:00
|
|
|
|
2012-05-25 20:21:42 -07:00
|
|
|
form action="#{root_path}scheduled" method="post"
|
2012-10-29 14:50:21 -06:00
|
|
|
table class="table table-striped table-bordered table-white"
|
2012-09-30 14:57:51 +02:00
|
|
|
thead
|
|
|
|
th width="20px"
|
2012-05-25 20:21:42 -07:00
|
|
|
input type="checkbox" class="check_all"
|
2013-04-04 20:51:59 -07:00
|
|
|
th width="25%" = t('When')
|
|
|
|
th width="10%" = t('Queue')
|
|
|
|
th = t('Worker')
|
|
|
|
th = t('Arguments')
|
2012-11-26 11:22:48 -05:00
|
|
|
- @scheduled.each do |msg, score|
|
2012-05-25 20:21:42 -07:00
|
|
|
tr
|
|
|
|
td
|
2012-11-26 14:53:22 -05:00
|
|
|
input type='checkbox' name='key[]' value='#{job_params(msg, score)}'
|
2012-05-25 20:21:42 -07:00
|
|
|
td== relative_time(Time.at(score))
|
|
|
|
td
|
|
|
|
a href="#{root_path}queues/#{msg['queue']}" #{msg['queue']}
|
|
|
|
td= msg['class']
|
|
|
|
td= display_args(msg['args'])
|
2013-04-04 20:51:59 -07:00
|
|
|
input.btn.btn-danger.pull-right type="submit" name="delete" value="#{t('Delete')}"
|
2012-05-25 20:21:42 -07:00
|
|
|
- else
|
2013-04-04 20:51:59 -07:00
|
|
|
.alert.alert-success = t('NoScheduledFound')
|