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/retries.slim

41 lines
1.6 KiB
Text
Raw Normal View History

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" }
- if @retries.size > 0
2012-07-17 22:14:15 -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"
tr
2012-09-30 14:57:51 +02:00
th width="20px"
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')
- @retries.each do |msg, score|
tr
td
input type='checkbox' name='key[]' value='#{job_params(msg, score)}'
td
a href="#{root_path}retries/#{job_params(msg, score)}"== relative_time(Time.at(score))
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')}"
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')}"
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')}"
- else
2013-04-04 20:51:59 -07:00
.alert.alert-success = t('NoRetriesFound')