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
Brandon Hilkert eaa72efd1d Merge branch 'master' into jid-managed
Conflicts:
	lib/sidekiq/web.rb
	test/test_api.rb
	web/views/retries.slim
2012-12-02 23:14:12 -05:00

40 lines
1.5 KiB
Text
Executable file

header.row
.span5
h3 Retries
.span4
- if @retries.size > 0
== slim :_paging, :locals => { :url => "#{root_path}retries" }
- if @retries.size > 0
form action="#{root_path}retries" method="post"
table class="table table-striped table-bordered table-white"
tr
th width="20px"
input type="checkbox" class="check_all"
th width="25%" Next Retry
th width="11%" Retry count
th Queue
th Worker
th Args
- @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'])
input.btn.btn-primary.btn-small.pull-left type="submit" name="retry" value="Retry Now"
input.btn.btn-danger.btn-small.pull-left type="submit" name="delete" value="Delete"
form action="#{root_path}retries/all/delete" method="post"
input.btn.btn-danger.btn-small.pull-right type="submit" name="delete" value="Delete All" data-confirm="Are you sure?"
form action="#{root_path}retries/all/retry" method="post"
input.btn.btn-danger.btn-small.pull-right type="submit" name="retry" value="Retry All" data-confirm="Are you sure?"
- else
.alert.alert-success No retries were found