Sha256: 806de7dbe48ba11bedc84f5af7093f34e71883c7974e4d4fdb82d30a331f35e7

Contents?: true

Size: 1.26 KB

Versions: 8

Compression:

Stored size: 1.26 KB

Contents

<% if queues.empty? %>
  <div class="page-header">
    <h1>No Queues <small>I wish I had some queues :-/</small></h1>
  </div>
<% else %>
  <div class="page-header">
    <h1>Queues <small>And their job counts</small></h1>
  </div>

  <% queues.each do |queue| %>
  <div class="row">
    <div class="span4">
      <h3>
        <% if queue['paused'] %>
          <button
            id="<%= queue['name'] %>-pause"
            title="Unpause"
            class="btn btn-success"
            onclick="unpause('<%= queue['name'] %>')"><i class="icon-play"></i>
          </button>
        <% else %>
          <button
            id="<%= queue['name'] %>-pause"
            title="Pause"
            class="btn btn-warning"
            onclick="pause('<%= queue['name'] %>')"><i class="icon-pause"></i>
          </button>
        <% end %>
        <a href="<%= u "/queues/#{CGI::escape(queue['name'])}" %>"><%= queue['name'] %></a>
      </h3>
    </div>
    <div class="span8">
      <h3> |
        <%= queue['running']   %> /
        <%= queue['waiting']   %> /
        <%= queue['scheduled'] %> /
        <%= queue['stalled']   %> /
        <%= queue['depends']   %> <small>(running / waiting / scheduled / stalled / depends)</small>
      </h3>
    </div>
  </div>
  <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
qless-0.12.0 lib/qless/server/views/queues.erb
qless-0.11.0 lib/qless/server/views/queues.erb
qless-0.10.5 lib/qless/server/views/queues.erb
qless-0.10.4 lib/qless/server/views/queues.erb
qless-0.10.3 lib/qless/server/views/queues.erb
qless-0.10.2 lib/qless/server/views/queues.erb
qless-0.10.1 lib/qless/server/views/queues.erb
qless-0.10.0 lib/qless/server/views/queues.erb