2012-09-30 08:57:51 -04:00
|
|
|
header.row
|
|
|
|
.span5
|
|
|
|
h3 Retries
|
|
|
|
.span4
|
|
|
|
- if @retries.size > 0
|
|
|
|
== slim :_paging, :locals => { :url => "#{root_path}retries" }
|
2012-05-11 19:48:03 -04:00
|
|
|
|
2012-10-29 17:54:51 -04:00
|
|
|
- if @retries.size > 0
|
2012-07-18 01:14:15 -04:00
|
|
|
|
2012-05-11 19:48:03 -04:00
|
|
|
form action="#{root_path}retries" method="post"
|
2012-10-29 16:50:21 -04:00
|
|
|
table class="table table-striped table-bordered table-white"
|
2012-05-11 19:48:03 -04:00
|
|
|
tr
|
2012-09-30 08:57:51 -04:00
|
|
|
th width="20px"
|
2012-05-11 19:48:03 -04:00
|
|
|
input type="checkbox" class="check_all"
|
2012-09-30 08:57:51 -04:00
|
|
|
th width="25%" Next Retry
|
|
|
|
th width="11%" Retry count
|
2012-05-11 19:48:03 -04:00
|
|
|
th Queue
|
|
|
|
th Worker
|
|
|
|
th Args
|
2012-11-26 11:22:48 -05:00
|
|
|
- @retries.each do |msg, score|
|
2012-05-11 19:48:03 -04:00
|
|
|
tr
|
|
|
|
td
|
2012-11-26 11:22:48 -05:00
|
|
|
input type='checkbox' name='jid[]' value='#{msg['jid']}'
|
2012-05-11 19:48:03 -04:00
|
|
|
td
|
2012-11-26 11:22:48 -05:00
|
|
|
a href="#{root_path}retries/#{msg['jid']}"== relative_time(Time.at(score))
|
2012-05-11 19:48:03 -04:00
|
|
|
td= msg['retry_count']
|
|
|
|
td
|
|
|
|
a href="#{root_path}queues/#{msg['queue']}" #{msg['queue']}
|
|
|
|
td= msg['class']
|
|
|
|
td= display_args(msg['args'])
|
2012-10-29 16:50:21 -04:00
|
|
|
input.btn.btn-danger.btn-small.pull-right type="submit" name="delete" value="Delete"
|
2012-11-26 11:22:48 -05:00
|
|
|
input.btn.btn-primary.btn-small.pull-right type="submit" name="retry" value="Retry Now"
|
2012-05-11 19:48:03 -04:00
|
|
|
- else
|
2012-10-29 16:50:21 -04:00
|
|
|
.alert.alert-success No retries were found
|