Sha256: 6f40cbd54301d4f17be1f12d6921075e08fe222ee599009e0df427674bc42193
Contents?: true
Size: 1.14 KB
Versions: 5
Compression:
Stored size: 1.14 KB
Contents
<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 %> <%= h(msg['payload']['args'].inspect[0..100]) + "... " %> <button data-toggle="collapse" data-target="#worker_<%= index %>" class="btn btn-default btn-xs"><%= t('ShowAll') %></button> <div class="toggle" id="worker_<%= index %>" style="display: none;max-width: 750px;"><%= h(msg['payload']['args']) %></div> <% else %> <%= h(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>
Version data entries
5 entries across 5 versions & 1 rubygems