1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Update display of arguments for enqueued jobs to better match the rest of the pages, should go through the display_args() helper.

This commit is contained in:
Mike Perham 2017-04-24 16:39:57 -07:00
parent fb8916f4ec
commit 8e98c75c08

View file

@ -22,13 +22,13 @@
<tr>
<td><%= h(msg.display_class) %></td>
<td>
<% a = msg.display_args.inspect %>
<% if a.size > 100 %>
<span class="worker_<%= index %>"><%= h(msg.display_args.inspect[0..100]) + "... " %></span>
<% a = msg.display_args %>
<% if a.inspect.size > 100 %>
<span class="worker_<%= index %>"><%= h(a.inspect[0..100]) + "... " %></span>
<button data-toggle="collapse" data-target=".worker_<%= index %>" class="btn btn-default btn-xs"><%= t('ShowAll') %></button>
<div class="toggle worker_<%= index %>"><%= h(msg.display_args) %></div>
<div class="toggle worker_<%= index %>"><%= display_args(a) %></div>
<% else %>
<%= h(msg.display_args) %>
<%= display_args(msg.display_args) %>
<% end %>
</td>
<td>