rosa-build/admin.bak/builders.rb

20 lines
467 B
Ruby
Raw Permalink Normal View History

ActiveAdmin.register_page 'Builders' do
content do
table do
thead do
2016-07-11 17:28:38 +01:00
["id", "system?", "Hostname", "Busy workers", "Query String"].each &method(:th)
end
tbody do
RpmBuildNode.all.to_a.each do |node|
next unless node.user_id
tr do
2016-07-11 17:28:38 +01:00
%w(id system host busy_workers query_string).each do |col|
td { node.send(col) }
end
end
end
end
end
end
end