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

21 lines
833 B
Text
Executable file

table class="workers table table-hover table-bordered table-striped table-white"
thead
th Worker
th Queue
th Class
th Arguments
th Started
- workers.each_with_index do |(worker, msg), index|
tr
td= worker
td
a href="#{root_path}queues/#{msg['queue']}" = msg['queue']
td= msg['payload']['class']
td
- if msg['payload']['args'].to_s.size > 100
= msg['payload']['args'].inspect[0..100] + "... "
button data-toggle="collapse" data-target="#worker_#{index}" class="btn btn-mini" Show All
.toggle[id="worker_#{index}" style="display: none;max-width: 750px;"]= msg['payload']['args']
- else
= msg['payload']['args']
td== relative_time(msg['run_at'].is_a?(Numeric) ? Time.at(msg['run_at']) : Time.parse(msg['run_at']))