Sha256: 0e2bb16be4565df73d02bf1726886bca90da8c8825d9460a2d7f6265040e1fbb

Contents?: true

Size: 2 KB

Versions: 22

Compression:

Stored size: 2 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('Actions') %></th>
    </thead>
    <% @queues.each do |queue| %>
      <tr>
        <td>
          <a href="<%= root_path %>queues/<%= CGI.escape(queue.name) %>"><%= queue.name %></a>
        </td>
        <td><%= number_with_delimiter(queue.size) %> </td>
        <td width="20%">
          <form action="<%=root_path %>enhanced-queues/<%= CGI.escape(queue.name) %>" method="post" style="display:inline">
            <%= csrf_tag %>
            <% if queue.paused? %>
              <button class="btn btn-primary btn-pauser-resume btn-xs" type="submit" name="action" value="resume">Resume</button>
            <% else %>
              <button class="btn btn-danger btn-pauser-pause btn-xs" type="submit" name="action" value="pause">Pause</button>
            <% end %>

            <button class="btn btn-danger btn-xs" type="submit" name="action" value="delete" data-confirm="<%= t('AreYouSureDeleteQueue', :queue => h(queue.name)) %>"><%= t('Delete') %></button>
          </form>
        </td>
      </tr>
    <% end %>
  </table>
</div>

<style>
.btn-pauser-pause {
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #b13e00), color-stop(100%, #983500));
  background-image: -webkit-linear-gradient(#b13e00, #983500);
  background-image: -moz-linear-gradient(#b13e00, #983500);
  background-image: -o-linear-gradient(#b13e00, #983500);
  background-image: linear-gradient(#b13e00, #983500);
}

.btn-pauser-resume {
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #00b13e), color-stop(100%, #009835));
  background-image: -webkit-linear-gradient(#00b13e, #009835);
  background-image: -moz-linear-gradient(#00b13e, #009835);
  background-image: -o-linear-gradient(#00b13e, #009835);
  background-image: linear-gradient(#00b13e, #009835);
}
</style>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sidekiq-throttled-0.15.1 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.18.0 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.17.0 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.16.2 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.16.1 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.16.0 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.15.0 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.14.1 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.13.0 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.12.0 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.11.0 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.10.0 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.10.0.beta lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.10.0.alpha lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.9.0 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.8.2 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.8.1 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.8.0 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.7.3 lib/sidekiq/throttled/web/queues.html.erb
sidekiq-throttled-0.7.2 lib/sidekiq/throttled/web/queues.html.erb