X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/07a3aa9651168756a6f108821f6ef10ea4ba8144..bff8478af0503196b18446f8b909949b618e363f:/apps/workbench/app/views/projects/index.html.erb diff --git a/apps/workbench/app/views/projects/index.html.erb b/apps/workbench/app/views/projects/index.html.erb index fad72044f4..e7e87368d6 100644 --- a/apps/workbench/app/views/projects/index.html.erb +++ b/apps/workbench/app/views/projects/index.html.erb @@ -2,7 +2,7 @@
-
Pipelines running +
Active pipelines <%= link_to( choose_pipeline_templates_path( @@ -17,7 +17,7 @@
-
+
<% if running_pipelines.empty? %> No pipelines are currently running. <% end %> @@ -67,7 +67,8 @@
- Started at <%= p[:created_at] %>. + Started at <%= p[:created_at] %>. <% pipeline_time = Time.now - (p[:started_at] || p[:created_at]) %> Active for <%= runtime(pipeline_time, false) %>. @@ -87,44 +88,64 @@
Recently finished pipelines
-
+
<% finished_pipelines(8).each do |p| %>
-
+
<%= link_to_if_arvados_object p, friendly_name: true %>
-
+
<%= render partial: "pipeline_status_label", locals: {p: p}%>
- <% outputs = [] %> - <% p.components.each do |k, c| %> - <% outputs << c[:output_uuid] if c[:output_uuid] %> - <% end %> - <%= outputs %> + <%= p[:modified_at] %>
-
- Finished at <%= p[:modified_at] %>. <% if p[:started_at] and p[:finished_at] %> <% pipeline_time = p[:finished_at] - p[:started_at] %> - Active for <%= runtime(pipeline_time, false) %>. + Active for <%= runtime(pipeline_time, false) %> <% end %> + + + <% outputs = [] %> + <% p.components.each do |k, c| %> + <% outputs << c[:output_uuid] if c[:output_uuid] %> + <% end %> + <% if outputs.size == 0 %> + No output. + <% elsif outputs.size == 1 %> + <%= link_to_if_arvados_object outputs[0], friendly_name: true %> + <% else %> + Outputs + <% end %> +
+ +
+
+ <% outputs.each do |out| %> +
+ <%= link_to_if_arvados_object out, friendly_name: true %> +
+ <% end %> +
+
+
<% end %>
-
+
<% nodes = Node.all %>
- +
<%= render partial: 'compute_node_summary', locals: {nodes: nodes} %> @@ -136,15 +157,17 @@
Recent collections
-
+
<% r = recent_collections(8) %> <% r[:collections].each do |p| %>
<%= link_to_if_arvados_object r[:owners][p[:owner_uuid]], friendly_name: true %>/ - p[:modified_at] + <%= p[:modified_at]%>
-
<%= link_to_if_arvados_object p, friendly_name: true %> +
<%= link_to_if_arvados_object p, friendly_name: true %>
<% end %>