X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bff8478af0503196b18446f8b909949b618e363f..400210f8c9d8b111a3efdaa76c8be579ea5666cb:/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 e7e87368d6..14da3e4ffb 100644 --- a/apps/workbench/app/views/projects/index.html.erb +++ b/apps/workbench/app/views/projects/index.html.erb @@ -1,179 +1,11 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. -
-
-
-
Active pipelines - - <%= link_to( - choose_pipeline_templates_path( - title: 'Choose a pipeline to run:', - action_name: 'Next: choose inputs ', - action_href: pipeline_instances_path, - action_method: 'post', - action_data: {'selection_param' => 'pipeline_instance[pipeline_template_uuid]', 'pipeline_instance[owner_uuid]' => current_user.uuid, 'success' => 'redirect-to-created-object'}.to_json), - { class: "btn btn-primary btn-xs", remote: true, method: 'get' }) do %> - Run a pipeline... - <% end %> - -
- -
- <% if running_pipelines.empty? %> - No pipelines are currently running. - <% end %> - <% running_pipelines.each do |p| %> -
-
- <%= link_to_if_arvados_object p, friendly_name: true %> - -
-
- <% running = [] %> - <% failed = [] %> - <% completed = [] %> - <% queued = [] %> - <% p.components.each do |k, v| %> - <% if v[:job] %> - <% if Job::state(v[:job]) == "Running" %> - <% running << k %> - <% elsif Job::state(v[:job]) == "Failed" or Job::state(v[:job]) == "Canceled" %> - <% failed << k %> - <% elsif Job::state(v[:job]) == "Completed" %> - <% completed << k %> - <% elsif Job::state(v[:job]) == "Queued" %> - <% queued << k %> - <% end %> - <% end %> - <% end %> - <% completed_pct = (completed.size * 100) / p.components.size %> - <% failed_pct = (failed.size * 100) / p.components.size %> - <% running_pct = (running.size * 100) / p.components.size %> - <% queued_pct = (queued.size * 100) / p.components.size %> - -
- -
-
- -
-
- -
-
- -
-
-
-
- -
- Started at <%= p[:created_at] %>. - <% pipeline_time = Time.now - (p[:started_at] || p[:created_at]) %> - Active for <%= runtime(pipeline_time, false) %>. - -
- <% running.each do |k| %> - <%= k %> - <% end %> - <% queued.each do |k| %> - <%= k %> - <% end %> -
-
-
- <% end %> -
-
- -
-
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}%> -
-
- <%= 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) %> - <% 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} %> -
-
- <%= render partial: 'compute_node_status', locals: {nodes: nodes} %> -
-
-
-
-
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]%> -
-
<%= link_to_if_arvados_object p, friendly_name: true %> -
-
- <% end %> -
-
-
-
+SPDX-License-Identifier: AGPL-3.0 %> +
" + data-object-uuid="all" + data-load-throttle="15000" + > + <%= render partial: 'show_dashboard' %>