File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- <% @subtabs = resque.queues unless partial? %>
1
+ <% @subtabs = resque.queues unless partial? || params[:id].nil? %>
2
2
3
3
<% if queue = params[:id] %>
4
4
Original file line number Diff line number Diff line change 85
85
<%= poll %>
86
86
87
87
<% else %>
88
-
88
+ <% @subtabs = [ ] %>
89
89
< h1 class ='wi '> Workers</ h1 >
90
90
< p class ='intro '> The hostnames below all have registered workers. Select a hostname to view its workers, or "all" to see all workers.</ p >
91
91
< table class ='queues '>
92
92
< tr >
93
93
< th > Hostname</ th >
94
94
< th > Workers</ th >
95
95
</ tr >
96
- <% for hostname , workers in worker_hosts %>
96
+ <% for hostname , workers in worker_hosts . sort_by { | h , w | h } %>
97
97
< tr >
98
98
< td class ='queue '> < a class ="queue " href ="<%= url "workers/#{ hostname } " %> "> <%= hostname %> </ a > </ td >
99
99
< td class ='size '> <%= workers . size %> </ td >
You can’t perform that action at this time.
0 commit comments