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

Add queue size to web show page (#3896)

* Add queue size to web show page

* Use bootstrap badge for queue size on show

Thanks-to: @thegorgon

* Use @total_size to avoid a network trip
This commit is contained in:
Laurent Arnoud 2018-08-14 00:13:51 +02:00 committed by Mike Perham
parent 99922ca4ad
commit 6e18326f69

View file

@ -5,6 +5,7 @@
<% if @queue.paused? %> <% if @queue.paused? %>
<span class="label label-danger"><%= t('Paused') %></span> <span class="label label-danger"><%= t('Paused') %></span>
<% end %> <% end %>
<span class="badge badge-secondary"><%= number_with_delimiter(@total_size) %></span>
</h3> </h3>
</div> </div>
<div class="col-sm-4 pull-right flip"> <div class="col-sm-4 pull-right flip">