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.erb

23 lines
765 B
Text
Raw Normal View History

2013-08-21 18:38:52 -04:00
<table class="workers table table-hover table-bordered table-striped table-white">
<thead>
<th><%= t('Worker') %></th>
<th><%= t('Queue') %></th>
<th><%= t('Class') %></th>
<th><%= t('Arguments') %></th>
<th><%= t('Started') %></th>
</thead>
<% workers.each_with_index do |(worker, msg), index| %>
<tr>
<td><%= worker %></td>
<td>
<a href="<%= root_path %>queues/<%= msg['queue'] %>"><%= msg['queue'] %></a>
2013-08-21 18:38:52 -04:00
</td>
<td><%= msg['payload']['class'] %></td>
<td>
<div class="args"><%= display_args(msg['payload']['args']) %></div>
2013-08-21 18:38:52 -04:00
</td>
<td><%= relative_time(msg['run_at'].is_a?(Numeric) ? Time.at(msg['run_at']) : Time.parse(msg['run_at'])) %></td>
</tr>
<% end %>
</table>