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

43 lines
1,000 B
Text
Raw Normal View History

.hero-unit
h1 Sidekiq is #{status}
2012-03-07 23:22:21 -05:00
p Processed: #{processed}
p Failed: #{failed}
p Workers: #{workers.size}
.tabbable
ul.nav.nav-tabs
li.active
a href="#workers" data-toggle="tab" Workers
2012-03-07 23:22:21 -05:00
li
a href="#queues" data-toggle="tab" Queues
.tab-content
2012-03-07 23:22:21 -05:00
#workers.tab-pane.active
table class="table table-striped table-bordered"
tr
th Worker
th Queue
th Class
th Arguments
- workers.each do |(worker, msg)|
tr
td= worker
- if msg
td= msg['queue']
td= msg['payload']['class']
td= msg['payload']['args'].inspect[0..100]
- else
td colspan=3 Idle
2012-03-07 23:22:21 -05:00
#queues.tab-pane
table class="table table-striped table-bordered"
tr
th Queue
th Size
- queues.each do |(queue, size)|
tr
td
a href="queues/#{queue}" #{queue}
td= size