2012-09-30 14:57:51 +02:00
|
|
|
header.row
|
|
|
|
.span5
|
|
|
|
h3
|
2013-04-04 20:51:59 -07:00
|
|
|
== t('CurrentMessagesInQueue', :queue => @name)
|
2012-09-30 14:57:51 +02:00
|
|
|
.span4
|
|
|
|
== slim :_paging, :locals => { :url => "#{root_path}queues/#{@name}" }
|
2012-07-17 22:14:15 -07:00
|
|
|
|
2012-09-30 14:57:51 +02:00
|
|
|
table class="queue table table-hover table-bordered table-striped"
|
|
|
|
thead
|
2013-04-04 20:51:59 -07:00
|
|
|
th = t('Class')
|
|
|
|
th = t('Arguments')
|
2012-10-23 16:11:14 -07:00
|
|
|
th
|
2012-10-23 10:26:33 -07:00
|
|
|
- @messages.each_with_index do |msg, index|
|
2012-03-05 20:53:14 -08:00
|
|
|
tr
|
|
|
|
td= msg['class']
|
2012-10-23 10:26:33 -07:00
|
|
|
td
|
|
|
|
- if msg['args'] and msg['args'].to_s.size > 100
|
|
|
|
= msg['args'].inspect[0..100] + "... "
|
2013-04-04 20:51:59 -07:00
|
|
|
button data-toggle="collapse" data-target="#worker_#{index}" class="btn btn-mini" = t('ShowAll')
|
2013-01-28 13:55:14 -08:00
|
|
|
.toggle[id="worker_#{index}" style="display: none;"]= msg['args']
|
2012-10-23 10:26:33 -07:00
|
|
|
- else
|
|
|
|
= msg['args']
|
2012-12-02 16:12:30 -05:00
|
|
|
td
|
|
|
|
form action="#{root_path}queues/#{@name}/delete" method="post"
|
|
|
|
input name="key_val" value="#{Sidekiq.dump_json(msg)}" type="hidden"
|
2013-04-04 20:51:59 -07:00
|
|
|
input.btn.btn-danger.btn-mini type="submit" name="delete" value="#{t('Delete')}" data-confirm="#{t('AreYouSure')}"
|
2012-07-17 22:14:15 -07:00
|
|
|
== slim :_paging, :locals => { :url => "#{root_path}queues/#{@name}" }
|