1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/views/queues.erb
2016-08-04 11:18:07 -04:00

28 lines
1,007 B
Text

<h3><%= t('Queues') %></h3>
<div class="table_container">
<table class="queues table table-hover table-bordered table-striped table-white">
<thead>
<th><%= t('Queue') %></th>
<th><%= t('Size') %></th>
<th><%= t('Actions') %></th>
</thead>
<% @queues.each do |queue| %>
<tr>
<td>
<a href="<%= root_path %>queues/<%= queue.name %>"><%= queue.name %></a>
<% if queue.paused? %>
<span class="label label-danger"><%= t('Paused') %></span>
<% end %>
</td>
<td><%= number_with_delimiter(queue.size) %> </td>
<td class="delete-confirm">
<form action="<%=root_path %>queues/<%= queue.name %>" method="post">
<%= csrf_tag %>
<input class="btn btn-danger btn-xs" type="submit" name="delete" value="<%= t('Delete') %>" data-confirm="<%= t('AreYouSureDeleteQueue', :queue => h(queue.name)) %>" />
</form>
</td>
</tr>
<% end %>
</table>
</div>