3 <div class="panel panel-default" style="min-height: 10.5em">
4 <div class="panel-heading">
5 <span class="panel-title">Recent pipelines and processes</span>
6 <% if current_user.andand.is_active %>
7 <span class="pull-right recent-processes-actions">
10 choose_work_unit_templates_path(
11 title: 'Choose a pipeline or workflow to run:',
12 action_name: 'Next: choose inputs <i class="fa fa-fw fa-arrow-circle-right"></i>',
13 action_href: work_units_path,
14 action_method: 'post',
15 action_data: {'selection_param' => 'work_unit[template_uuid]', 'work_unit[owner_uuid]' => current_user.uuid, 'success' => 'redirect-to-created-object'}.to_json),
16 { class: "btn btn-primary btn-xs", remote: true }) do %>
17 <i class="fa fa-fw fa-gear"></i> Run a pipeline...
21 <%= link_to all_processes_path, class: 'btn btn-default btn-xs' do %>
22 All processes <i class="fa fa-fw fa-arrow-circle-right"></i>
29 <% _recent_processes = recent_processes(12) %>
30 <div class="panel-body recent-processes">
31 <% if _recent_processes.empty? %>
32 No recent pipelines or processes.
34 <% _recent_processes.each do |p| %>
35 <% wu = p.work_unit %>
36 <% if wu.is_finished? %>
37 <div class="dashboard-panel-info-row row-<%=wu.uuid%>">
39 <div class="col-md-6 text-overflow-ellipsis">
40 <%= link_to_if_arvados_object p, {friendly_name: true} %>
42 <div class="col-md-2">
43 <span class="label label-<%=wu.state_bootstrap_class%>"><%=wu.state_label%></span>
45 <div class="col-md-4">
46 <%= render_localized_date(wu.finished_at || wu.modified_at, "noseconds") %>
50 <div class="col-md-12">
51 <% if wu.started_at and wu.finished_at %>
52 <% wu_time = wu.finished_at - wu.started_at %>
53 Active for <%= render_runtime(wu_time, false) %>
56 <%= render partial: 'work_units/show_output', locals: {wu: wu, align: 'pull-right', include_icon: true} %>
62 <div class="dashboard-panel-info-row row-<%=wu.uuid%>">
63 <div class="clearfix">
64 <%= link_to_if_arvados_object p, {friendly_name: true} %>
65 <div class="pull-right" style="width: 40%">
66 <% if wu.is_running? %>
67 <div class="progress" style="margin-bottom: 0px">
71 <span class="label label-<%=wu.state_bootstrap_class%>"><%=wu.state_label%></span>
77 children = wu.children
78 running = children.select { |c| c.state_label == "Running" }
79 queued = children.select { |c| c.state_label == "Queued" }
82 <div class="clearfix">
83 Started at <%= render_localized_date(wu.started_at || wu.created_at, "noseconds") %>.
84 <% wu_time = Time.now - (wu.started_at || wu.created_at) %>
85 Active for <%= render_runtime(wu_time, false) %>.
87 <div class="pull-right">
88 <% running.each do |r| %>
89 <span class="label label-<%= r.state_bootstrap_class %>"> <%= r.label || r.state_label || 'Not ready' %> </span>
91 <% queued.each do |q| %>
92 <span class="label label-<%= q.state_bootstrap_class %>"> <%= q.label || r.state_label || 'Not ready' %> </span>
104 <div class="col-md-6">
105 <% nodes = Node.filter([["last_ping_at", ">", Time.now - 3600]]) %>
106 <div class="panel panel-default" style="min-height: 10.5em">
107 <div class="panel-heading"><span class="panel-title">Compute node status</span>
108 <span class="pull-right compute-node-actions">
109 <% if current_user.andand.is_admin %>
111 <%= link_to nodes_path, class: 'btn btn-default btn-xs' do %>
112 All nodes <i class="fa fa-fw fa-arrow-circle-right"></i>
118 <div class="panel-body compute-node-summary-pane">
120 <%= render partial: 'compute_node_summary', locals: {nodes: nodes} %>
121 <% active_nodes = [] %>
122 <% nodes.sort_by { |n| n.hostname || "" }.each do |n| %>
123 <% if n.crunch_worker_state.in? ["busy", "idle"] %>
124 <% active_nodes << n %>
127 <% if active_nodes.any? %>
128 <div style="text-align: center">
129 <a data-toggle="collapse" href="#compute_node_status">Details <span class="caret"></span></a>
133 <div id="compute_node_status" class="collapse">
134 <%= render partial: 'compute_node_status', locals: {nodes: active_nodes} %>
138 <div class="panel panel-default">
139 <div class="panel-heading"><span class="panel-title">Recent collections</span>
140 <span class="pull-right">
141 <%= link_to collections_path, class: 'btn btn-default btn-xs' do %>
142 All collections <i class="fa fa-fw fa-arrow-circle-right"></i>
146 <div class="panel-body">
147 <% r = recent_collections(8) %>
148 <% r[:collections].each do |p| %>
149 <div class="dashboard-panel-info-row">
151 <i class="fa fa-fw fa-folder-o"></i><%= link_to_if_arvados_object r[:owners][p[:owner_uuid]], friendly_name: true %>/
152 <span class="pull-right"><%= render_localized_date(p[:modified_at], "noseconds") %></span>
154 <div class="text-overflow-ellipsis" style="margin-left: 1em; width: 100%"><%= link_to_if_arvados_object p, {friendly_name: true, no_tags: true} %>