X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/195b1b9f5b683110b4cef2ebd4e7cc3401317334..3156c76f53b4142beb912cb57fd66e343c9e09d4:/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..14da3e4ffb 100644 --- a/apps/workbench/app/views/projects/index.html.erb +++ b/apps/workbench/app/views/projects/index.html.erb @@ -1,156 +1,11 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. -
-
-
-
Pipelines running - - <%= 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}%> -
-
- <% outputs = [] %> - <% p.components.each do |k, c| %> - <% outputs << c[:output_uuid] if c[:output_uuid] %> - <% end %> - <%= outputs %> -
-
- -
-
- 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) %>. - <% 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' %>