4 <div class="panel panel-default" style="min-height: 10.5em">
5 <div class="panel-heading"><span class="panel-title">Active pipelines</span>
6 <span class="pull-right">
8 choose_pipeline_templates_path(
9 title: 'Choose a pipeline to run:',
10 action_name: 'Next: choose inputs <i class="fa fa-fw fa-arrow-circle-right"></i>',
11 action_href: pipeline_instances_path,
12 action_method: 'post',
13 action_data: {'selection_param' => 'pipeline_instance[pipeline_template_uuid]', 'pipeline_instance[owner_uuid]' => current_user.uuid, 'success' => 'redirect-to-created-object'}.to_json),
14 { class: "btn btn-primary btn-xs", remote: true, method: 'get' }) do %>
15 <i class="fa fa-fw fa-gear"></i> Run a pipeline...
20 <% _running_pipelines = running_pipelines %>
21 <% _finished_pipelines = finished_pipelines(8) %>
22 <% lookup = preload_objects_for_dataclass PipelineTemplate, (_running_pipelines.map(&:pipeline_template_uuid) + _finished_pipelines.map(&:pipeline_template_uuid)) %>
24 <div class="panel-body">
25 <% if _running_pipelines.empty? %>
26 No pipelines are currently running.
28 <% _running_pipelines.each do |p| %>
29 <div class="dashboard-panel-info-row">
30 <div class="clearfix">
31 <%= link_to_if_arvados_object p, {friendly_name: true, lookup: lookup} %>
33 <div class="pull-right" style="width: 40%">
34 <div class="progress" style="margin-bottom: 0px">
35 <% p.components.each do |k, v| %>
36 <%= render partial: 'job_progress', locals: {:j => v[:job], :scaleby => (1.0/p.components.size)} %>
43 running = p.components.select { |k, c| c.andand[:job].andand[:state] == "Running" }
44 queued = p.components.select { |k, c| c.andand[:job].andand[:state] == "Queued" }
47 <div class="clearfix">
48 Started at <%= render_localized_date(p[:started_at] || p[:created_at], "noseconds") %>.
49 <% pipeline_time = Time.now - (p[:started_at] || p[:created_at]) %>
50 Active for <%= render_runtime(pipeline_time, false) %>.
52 <div class="pull-right">
53 <% running.each do |k,v| %>
54 <%= render partial: 'job_progress', locals: {:j => v[:job], :show_progress_bar => false, :title => k} %>
56 <% queued.each do |k,v| %>
57 <%= render partial: 'job_progress', locals: {:j => v[:job], :show_progress_bar => false, :title => k} %>
67 <div class="panel panel-default">
68 <div class="panel-heading"><span class="panel-title">Recently finished pipelines</span>
69 <span class="pull-right">
70 <%= link_to pipeline_instances_path, class: 'btn btn-default btn-xs' do %>
71 All pipelines <i class="fa fa-fw fa-arrow-circle-right"></i>
75 <div class="panel-body">
76 <% _finished_pipelines.each do |p| %>
77 <div class="dashboard-panel-info-row">
79 <div class="col-md-6 text-overflow-ellipsis">
80 <%= link_to_if_arvados_object p, {friendly_name: true, lookup: lookup} %>
82 <div class="col-md-2">
83 <%= render partial: "pipeline_status_label", locals: {p: p}%>
85 <div class="col-md-4">
86 <%= render_localized_date(p[:finished_at] || p[:modified_at], "noseconds") %>
90 <div class="col-md-12">
91 <% if p[:started_at] and p[:finished_at] %>
92 <% pipeline_time = p[:finished_at] - p[:started_at] %>
93 Active for <%= render_runtime(pipeline_time, false) %>
96 <span class="pull-right text-overflow-ellipsis" style="max-width: 100%">
98 <% p.components.each do |k, c| %>
99 <% outputs << c[:output_uuid] if c[:output_uuid] %>
101 <% if outputs.size == 0 %>
103 <% elsif outputs.size == 1 %>
104 <i class="fa fa-fw fa-archive"></i> <%= link_to_if_arvados_object outputs[0], friendly_name: true %>
106 <a href="#<%= p[:uuid] %>-outputs" data-toggle="collapse">Outputs <span class="caret"></span></a>
112 <div class="row collapse" id="<%= p[:uuid] %>-outputs" >
113 <div class="col-md-12">
114 <div class="pull-right" style="max-width: 100%">
115 <% outputs.each do |out| %>
116 <div class="text-overflow-ellipsis">
117 <i class="fa fa-fw fa-archive"></i> <%= link_to_if_arvados_object out, friendly_name: true %>
129 <div class="col-md-6">
130 <% nodes = Node.all %>
131 <div class="panel panel-default" style="min-height: 10.5em">
132 <div class="panel-heading"><span class="panel-title">Compute and job status</span>
133 <span class="pull-right">
134 <%= link_to jobs_path, class: 'btn btn-default btn-xs' do %>
135 All jobs <i class="fa fa-fw fa-arrow-circle-right"></i>
139 <div class="panel-body">
141 <%= render partial: 'compute_node_summary', locals: {nodes: nodes} %>
142 <div style="text-align: center">
143 <a data-toggle="collapse" href="#compute_node_status">Details <span class="caret"></span></a>
146 <div id="compute_node_status" class="collapse">
147 <%= render partial: 'compute_node_status', locals: {nodes: nodes} %>
151 <div class="panel panel-default">
152 <div class="panel-heading"><span class="panel-title">Recent collections</span>
153 <span class="pull-right">
154 <%= link_to collections_path, class: 'btn btn-default btn-xs' do %>
155 All collections <i class="fa fa-fw fa-arrow-circle-right"></i>
159 <div class="panel-body">
160 <% r = recent_collections(8) %>
161 <% r[:collections].each do |p| %>
162 <div class="dashboard-panel-info-row">
164 <i class="fa fa-fw fa-folder-o"></i><%= link_to_if_arvados_object r[:owners][p[:owner_uuid]], friendly_name: true %>/
165 <span class="pull-right"><%= render_localized_date(p[:modified_at], "noseconds") %></span>
167 <div class="text-overflow-ellipsis" style="margin-left: 1em; width: 100%"><%= link_to_if_arvados_object p, {friendly_name: true, no_tags: true} %>