Sha256: fa551720c6f477f229a368ea69088cfb35c6bd3aeb790bdc55c70e0cbff4feab

Contents?: true

Size: 1.78 KB

Versions: 14

Compression:

Stored size: 1.78 KB

Contents

<div class="header-container">
  <h1><%= t('Queues') %></h1>
</div>

<div class="table_container">
  <table class="queues table table-hover table-bordered table-striped">
    <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 class="num"><%= number_with_delimiter(queue.size) %> </td>
        <td class="num">
          <% queue_latency = queue.latency %>
          <%= (queue_latency < 60) ? '' : " (#{relative_time(Time.at(Time.now.to_f - queue_latency))})" %>
          <%= number_with_delimiter(queue_latency, precision: 2) %>
        </td>
        <td class="delete-confirm">
          <form action="<%=root_path %>queues/<%= CGI.escape(queue.name) %>" method="post">
            <%= csrf_tag %>
            <input class="btn btn-danger" type="submit" name="delete" title="This will delete all jobs within the queue, it will reappear if you push more jobs to it in the future." value="<%= t('Delete') %>" data-confirm="<%= t('AreYouSureDeleteQueue', :queue => h(queue.name)) %>" />

            <% if Sidekiq.pro? %>
              <% if queue.paused? %>
                <input class="btn btn-danger" type="submit" name="unpause" value="<%= t('Unpause') %>" />
              <% else %>
                <input class="btn btn-danger" type="submit" name="pause" value="<%= t('Pause') %>" />
              <% end %>
            <% end %>
          </form>
        </td>
      </tr>
    <% end %>
  </table>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sidekiq-7.3.8 web/views/queues.erb
sidekiq-7.3.7 web/views/queues.erb
sidekiq-7.3.6 web/views/queues.erb
sidekiq-7.3.5 web/views/queues.erb
sidekiq-7.3.4 web/views/queues.erb
sidekiq-7.3.3 web/views/queues.erb
sidekiq-7.3.2 web/views/queues.erb
sidekiq-7.3.1 web/views/queues.erb
sidekiq-7.3.0 web/views/queues.erb
sidekiq-7.2.4 web/views/queues.erb
sidekiq-7.2.3 web/views/queues.erb
sidekiq-7.2.2 web/views/queues.erb
sidekiq-7.2.1 web/views/queues.erb
sidekiq-7.2.0 web/views/queues.erb