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

Hide the intial preview line when using Show All in the UI (#3286)

This commit is contained in:
dgasper 2016-12-20 18:20:40 +01:00 committed by Mike Perham
parent 24004c5ef2
commit 901e8586c2

View file

@ -24,9 +24,9 @@
<td>
<% a = msg.display_args.inspect %>
<% if a.size > 100 %>
<%= h(msg.display_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 %>"><%= h(msg.display_args) %></div>
<span class="worker_<%= index %>"><%= h(msg.display_args.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>
<% else %>
<%= h(msg.display_args) %>
<% end %>