2013-08-22 02:38:52 +04:00
|
|
|
<h3><%= t('Queues') %></h3>
|
|
|
|
|
2015-05-14 02:48:17 +03:00
|
|
|
<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>
|
2017-10-19 11:32:06 +02:00
|
|
|
<th><%= t('Latency') %></th>
|
2015-05-14 02:48:17 +03:00
|
|
|
<th><%= t('Actions') %></th>
|
|
|
|
</thead>
|
|
|
|
<% @queues.each do |queue| %>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2017-01-24 10:27:50 -08:00
|
|
|
<a href="<%= root_path %>queues/<%= CGI.escape(queue.name) %>"><%= h queue.name %></a>
|
2015-05-14 02:48:17 +03:00
|
|
|
<% if queue.paused? %>
|
|
|
|
<span class="label label-danger"><%= t('Paused') %></span>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td><%= number_with_delimiter(queue.size) %> </td>
|
2017-10-19 11:32:06 +02:00
|
|
|
<td><%= number_with_delimiter(queue.latency.round(2)) %> </td>
|
2016-08-04 11:18:07 -04:00
|
|
|
<td class="delete-confirm">
|
2017-01-24 10:27:50 -08:00
|
|
|
<form action="<%=root_path %>queues/<%= CGI.escape(queue.name) %>" method="post">
|
2015-07-06 15:52:41 -07:00
|
|
|
<%= csrf_tag %>
|
2015-05-14 02:48:17 +03:00
|
|
|
<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>
|