mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
4ee52ea215
The queue name was missing the opening erb tag.
29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
<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>
|
|
</td>
|
|
|
|
<td><%= msg['payload']['class'] %></td>
|
|
<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"><%= t('ShowAll') %></button>
|
|
<div class="toggle" id="worker_<%= index %>" style="display: none;max-width: 750px;"><%= msg['payload']['args'] %></div>
|
|
<% else %>
|
|
<%= msg['payload']['args'] %>
|
|
<% end %>
|
|
</td>
|
|
<td><%= relative_time(msg['run_at'].is_a?(Numeric) ? Time.at(msg['run_at']) : Time.parse(msg['run_at'])) %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|