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

Sidekiq::Web escape args on workers and queues page

This commit is contained in:
Julian Langschaedel 2013-10-30 23:11:12 +01:00
parent 4879701187
commit 104bc8a9c8
2 changed files with 6 additions and 6 deletions

View file

@ -16,11 +16,11 @@
<td><%= msg['payload']['class'] %></td>
<td>
<% if msg['payload']['args'].to_s.size > 100 %>
<%= msg['payload']['args'].inspect[0..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;"><%= msg['payload']['args'] %></div>
<div class="toggle" id="worker_<%= index %>" style="display: none;max-width: 750px;"><%= h(msg['payload']['args']) %></div>
<% else %>
<%= msg['payload']['args'] %>
<%= 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>

View file

@ -19,11 +19,11 @@
<td><%= msg['class'] %></td>
<td>
<% if msg['args'] and msg['args'].to_s.size > 100 %>
<%= msg['args'].inspect[0..100] + "... " %>
<%= h(msg['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;"><%= msg['args'] %></div>
<div class="toggle" id="worker_<%= index %>" style="display: none;"><%= h(msg['args']) %></div>
<% else %>
<%= msg['args'] %>
<%= h(msg['args']) %>
<% end %>
</td>
<td>