<% @subtabs = @sliders.all_hosts unless @sliders.all_hosts.length == 1 %>

Sliders

<% if params[:host] || @sliders.all_hosts.length == 1 %> <% host = params[:host] || @sliders.all_hosts.first %> <% max = @sliders.max_children(host) || 'Not running' %>

<%= "#{host} (Total: Max: #{max})" %> <%= daemon_buttons(host, false) %>

<% @sliders.queue_values(host).each_pair do |queue,value| %>

<%= value %>
<% end %>
<% else %> <% @sliders.all_hosts.each do |host| %> <% end %>
Hostname Current / Max Workers Controls
<%= host %> <% if @sliders.stale_hosts.include?(host) %> Not Checked in (Stale) <% else %> <%= [@sliders.current_children(host), @sliders.max_children(host)].compact.join(' / ') %> <% end %>
    <%= daemon_buttons(host) %>
<% end %>