Sha256: 374df0659618855972d54ea7cd24bdad9988035d4a4a7f6a9373e1bb0a221e96
Contents?: true
Size: 1.24 KB
Versions: 12
Compression:
Stored size: 1.24 KB
Contents
<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('Latency') %></th> <th><%= t('Actions') %></th> </thead> <% @queues.each do |queue| %> <tr> <td> <a href="<%= root_path %>queues/<%= CGI.escape(queue.name) %>"><%= h queue.name %></a> <% if queue.paused? %> <span class="label label-danger"><%= t('Paused') %></span> <% end %> </td> <td><%= number_with_delimiter(queue.size) %> </td> <td><% queue_latency = queue.latency %><%= number_with_delimiter(queue_latency.round(2)) %><%= (queue_latency < 60) ? '' : " (#{relative_time(Time.at(Time.now.to_f - queue_latency))})" %> </td> <td class="delete-confirm"> <form action="<%=root_path %>queues/<%= CGI.escape(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>
Version data entries
12 entries across 12 versions & 2 rubygems