2 <% queue = Job.queue %>
5 <% queue.each do |j| %>
7 <div class="col-md-3 text-overflow-ellipsis">
8 <%= link_to_if_arvados_object j, friendly_name: true %>
10 <div class="col-md-4">
11 <%= render_localized_date(j[:created_at]) %>
13 <div class="col-md-3">
14 <%= render_runtime(Time.now - j[:created_at], false) %>
16 <div class="col-md-2">
22 <div class="col-md-3">
25 <div class="col-md-4">
28 <div class="col-md-3">
31 <div class="col-md-2">
35 <% if Job.queue_size > queue.size %>
36 <i>Note: some items in the queue are not visible to you.</i>
41 There are currently no jobs in your queue.
45 <div class="compute-summary-nodelist">
46 <% nodes.sort_by { |n| n.hostname || "" }.each do |n| %>
47 <% if n.crunch_worker_state.in? ["busy", "idle"] and (Time.now - n[:last_ping_at]) < 3600 %>
48 <div class="compute-summary">
49 <a data-toggle="collapse" href="#detail_<%= n.hostname %>" class="compute-summary-head label label-<%= if n.crunch_worker_state == 'busy' then 'primary' else 'default' end %>">
52 <div id="detail_<%= n.hostname %>" class="collapse compute-detail">
53 state: <%= n.crunch_worker_state %><br>
54 <% [:total_cpu_cores, :total_ram_mb, :total_scratch_mb].each do |i| %>
55 <%= i.to_s.gsub '_', ' ' %>: <%= n.info[i] %><br>