4 <div class="panel panel-default" style="min-height: 10.5em">
5 <div class="panel-heading"><span class="panel-title">Active pipelines</span>
6 <% if current_user.andand.is_active %>
7 <span class="pull-right">
9 choose_pipeline_templates_path(
10 title: 'Choose a pipeline to run:',
11 action_name: 'Next: choose inputs <i class="fa fa-fw fa-arrow-circle-right"></i>',
12 action_href: pipeline_instances_path,
13 action_method: 'post',
14 action_data: {'selection_param' => 'pipeline_instance[pipeline_template_uuid]', 'pipeline_instance[owner_uuid]' => current_user.uuid, 'success' => 'redirect-to-created-object'}.to_json),
15 { class: "btn btn-primary btn-xs", remote: true }) do %>
16 <i class="fa fa-fw fa-gear"></i> Run a pipeline...
22 <% _running_pipelines = running_pipelines %>
23 <% _finished_pipelines = finished_pipelines(8) %>
24 <% lookup = preload_objects_for_dataclass PipelineTemplate, (_running_pipelines.map(&:pipeline_template_uuid) + _finished_pipelines.map(&:pipeline_template_uuid)) %>
26 <div class="panel-body">
27 <% if _running_pipelines.empty? %>
28 No pipelines are currently running.
30 <% _running_pipelines.each do |p| %>
31 <div class="dashboard-panel-info-row">
32 <div class="clearfix">
33 <%= link_to_if_arvados_object p, {friendly_name: true, lookup: lookup} %>
35 <div class="pull-right" style="width: 40%">
36 <div class="progress" style="margin-bottom: 0px">
37 <% p.components.each do |k, v| %>
38 <% if v.is_a? Hash and v[:job] %>
39 <%= render partial: 'job_progress', locals: {:j => v[:job], :scaleby => (1.0/p.components.size)} %>
47 running = p.components.select { |k, c| c.is_a? Hash and c[:job].andand[:state] == "Running" }
48 queued = p.components.select { |k, c| c.is_a? Hash and c[:job].andand[:state] == "Queued" }
51 <div class="clearfix">
52 Started at <%= render_localized_date(p[:started_at] || p[:created_at], "noseconds") %>.
53 <% pipeline_time = Time.now - (p[:started_at] || p[:created_at]) %>
54 Active for <%= render_runtime(pipeline_time, false) %>.
56 <div class="pull-right">
57 <% running.each do |k,v| %>
58 <%= render partial: 'job_progress', locals: {:j => v[:job], :show_progress_bar => false, :title => k} %>
60 <% queued.each do |k,v| %>
61 <%= render partial: 'job_progress', locals: {:j => v[:job], :show_progress_bar => false, :title => k} %>
71 <div class="panel panel-default">
72 <div class="panel-heading"><span class="panel-title">Recently finished pipelines</span>
73 <span class="pull-right">
74 <%= link_to pipeline_instances_path, class: 'btn btn-default btn-xs' do %>
75 All pipelines <i class="fa fa-fw fa-arrow-circle-right"></i>
79 <div class="panel-body">
80 <% _finished_pipelines.each do |p| %>
81 <div class="dashboard-panel-info-row">
83 <div class="col-md-6 text-overflow-ellipsis">
84 <%= link_to_if_arvados_object p, {friendly_name: true, lookup: lookup} %>
86 <div class="col-md-2">
87 <%= render partial: "pipeline_status_label", locals: {p: p}%>
89 <div class="col-md-4">
90 <%= render_localized_date(p[:finished_at] || p[:modified_at], "noseconds") %>
94 <div class="col-md-12">
95 <% if p[:started_at] and p[:finished_at] %>
96 <% pipeline_time = p[:finished_at] - p[:started_at] %>
97 Active for <%= render_runtime(pipeline_time, false) %>
100 <span class="pull-right text-overflow-ellipsis" style="max-width: 100%">
102 <% p.components.each do |k, c| %>
103 <% outputs << c[:output_uuid] if c[:output_uuid] %>
105 <% if outputs.size == 0 %>
107 <% elsif outputs.size == 1 %>
108 <i class="fa fa-fw fa-archive"></i> <%= link_to_if_arvados_object outputs[0], friendly_name: true %>
110 <a href="#<%= p[:uuid] %>-outputs" data-toggle="collapse">Outputs <span class="caret"></span></a>
116 <div class="row collapse" id="<%= p[:uuid] %>-outputs" >
117 <div class="col-md-12">
118 <div class="pull-right" style="max-width: 100%">
119 <% outputs.each do |out| %>
120 <div class="text-overflow-ellipsis">
121 <i class="fa fa-fw fa-archive"></i> <%= link_to_if_arvados_object out, friendly_name: true %>
133 <div class="col-md-6">
134 <% nodes = Node.all %>
135 <div class="panel panel-default" style="min-height: 10.5em">
136 <div class="panel-heading"><span class="panel-title">Compute and job status</span>
137 <span class="pull-right">
138 <%= link_to jobs_path, class: 'btn btn-default btn-xs' do %>
139 All jobs <i class="fa fa-fw fa-arrow-circle-right"></i>
143 <div class="panel-body">
145 <%= render partial: 'compute_node_summary', locals: {nodes: nodes} %>
146 <div style="text-align: center">
147 <a data-toggle="collapse" href="#compute_node_status">Details <span class="caret"></span></a>
150 <div id="compute_node_status" class="collapse">
151 <%= render partial: 'compute_node_status', locals: {nodes: nodes} %>
155 <div class="panel panel-default">
156 <div class="panel-heading"><span class="panel-title">Recent collections</span>
157 <span class="pull-right">
158 <%= link_to collections_path, class: 'btn btn-default btn-xs' do %>
159 All collections <i class="fa fa-fw fa-arrow-circle-right"></i>
163 <div class="panel-body">
164 <% r = recent_collections(8) %>
165 <% r[:collections].each do |p| %>
166 <div class="dashboard-panel-info-row">
168 <i class="fa fa-fw fa-folder-o"></i><%= link_to_if_arvados_object r[:owners][p[:owner_uuid]], friendly_name: true %>/
169 <span class="pull-right"><%= render_localized_date(p[:modified_at], "noseconds") %></span>
171 <div class="text-overflow-ellipsis" style="margin-left: 1em; width: 100%"><%= link_to_if_arvados_object p, {friendly_name: true, no_tags: true} %>