2012-09-30 14:57:51 +02:00
|
|
|
header.row
|
|
|
|
.span5
|
2013-04-04 20:51:59 -07:00
|
|
|
h3 = t('Retries')
|
2012-09-30 14:57:51 +02:00
|
|
|
.span4
|
|
|
|
- if @retries.size > 0
|
|
|
|
== slim :_paging, :locals => { :url => "#{root_path}retries" }
|
2012-05-11 16:48:03 -07:00
|
|
|
|
2012-10-29 15:54:51 -06:00
|
|
|
- if @retries.size > 0
|
2012-07-17 22:14:15 -07:00
|
|
|
|
2012-05-11 16:48:03 -07:00
|
|
|
form action="#{root_path}retries" method="post"
|
2012-10-29 14:50:21 -06:00
|
|
|
table class="table table-striped table-bordered table-white"
|
2012-05-11 16:48:03 -07:00
|
|
|
tr
|
2012-09-30 14:57:51 +02:00
|
|
|
th width="20px"
|
2012-05-11 16:48:03 -07:00
|
|
|
input type="checkbox" class="check_all"
|
2013-04-04 20:51:59 -07:00
|
|
|
th width="25%" = t('NextRetry')
|
|
|
|
th width="11%" = t('RetryCount')
|
|
|
|
th = t('Queue')
|
|
|
|
th = t('Worker')
|
|
|
|
th = t('Arguments')
|
2012-11-26 11:22:48 -05:00
|
|
|
- @retries.each do |msg, score|
|
2012-05-11 16:48:03 -07:00
|
|
|
tr
|
|
|
|
td
|
2012-11-26 14:53:22 -05:00
|
|
|
input type='checkbox' name='key[]' value='#{job_params(msg, score)}'
|
2012-05-11 16:48:03 -07:00
|
|
|
td
|
2012-11-26 14:53:22 -05:00
|
|
|
a href="#{root_path}retries/#{job_params(msg, score)}"== relative_time(Time.at(score))
|
2012-05-11 16:48:03 -07:00
|
|
|
td= msg['retry_count']
|
|
|
|
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-primary.btn-small.pull-left type="submit" name="retry" value="#{t('RetryNow')}"
|
|
|
|
input.btn.btn-danger.btn-small.pull-left type="submit" name="delete" value="#{t('Delete')}"
|
2012-11-25 21:43:48 -05:00
|
|
|
|
|
|
|
form action="#{root_path}retries/all/delete" method="post"
|
2013-04-04 20:51:59 -07:00
|
|
|
input.btn.btn-danger.btn-small.pull-right type="submit" name="delete" value="#{t('DeleteAll')}" data-confirm="#{t('AreYouSure')}"
|
2012-11-25 21:43:48 -05:00
|
|
|
form action="#{root_path}retries/all/retry" method="post"
|
2013-04-04 20:51:59 -07:00
|
|
|
input.btn.btn-danger.btn-small.pull-right type="submit" name="retry" value="#{t('RetryAll')}" data-confirm="#{t('AreYouSure')}"
|
2012-11-25 21:43:48 -05:00
|
|
|
|
2012-05-11 16:48:03 -07:00
|
|
|
- else
|
2013-04-04 20:51:59 -07:00
|
|
|
.alert.alert-success = t('NoRetriesFound')
|