Sha256: 315668569fceb7d7c5405ce20ecc382f7b372838b3d6b207df89f282a6702f25

Contents?: true

Size: 1.67 KB

Versions: 22

Compression:

Stored size: 1.67 KB

Contents

<h3><%= t('Queues') %></h3>

<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><%= 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" 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

22 entries across 22 versions & 1 rubygems

Version Path
sidekiq-6.5.12 web/views/queues.erb
sidekiq-6.5.11 web/views/queues.erb
sidekiq-6.5.10 web/views/queues.erb
sidekiq-6.5.9 web/views/queues.erb
sidekiq-7.0.2 web/views/queues.erb
sidekiq-7.0.1 web/views/queues.erb
sidekiq-6.5.8 web/views/queues.erb
sidekiq-7.0.0 web/views/queues.erb
sidekiq-7.0.0.beta1 web/views/queues.erb
sidekiq-6.5.7 web/views/queues.erb
sidekiq-6.5.6 web/views/queues.erb
sidekiq-6.5.5 web/views/queues.erb
sidekiq-6.5.4 web/views/queues.erb
sidekiq-6.5.3 web/views/queues.erb
sidekiq-6.5.2 web/views/queues.erb
sidekiq-6.5.1 web/views/queues.erb
sidekiq-6.5.0 web/views/queues.erb
sidekiq-6.4.2 web/views/queues.erb
sidekiq-6.4.1 web/views/queues.erb
sidekiq-6.4.0 web/views/queues.erb