Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Web UI: Sort workers, don't always show subtabs
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Aug 24, 2010
1 parent aba6f6f commit 1852cea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/resque/server/views/queues.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% @subtabs = resque.queues unless partial? %>
<% @subtabs = resque.queues unless partial? || params[:id].nil? %>
<% if queue = params[:id] %>

Expand Down
4 changes: 2 additions & 2 deletions lib/resque/server/views/workers.erb
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@
<%=poll%>
<% else %>

<% @subtabs = [] %>
<h1 class='wi'>Workers</h1>
<p class='intro'>The hostnames below all have registered workers. Select a hostname to view its workers, or "all" to see all workers.</p>
<table class='queues'>
<tr>
<th>Hostname</th>
<th>Workers</th>
</tr>
<% for hostname, workers in worker_hosts %>
<% for hostname, workers in worker_hosts.sort_by { |h,w| h } %>
<tr>
<td class='queue'><a class="queue" href="<%= url "workers/#{hostname}" %>"><%= hostname %></a></td>
<td class='size'><%= workers.size %></td>
Expand Down

0 comments on commit 1852cea

Please sign in to comment.