X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c84237c2b2d579b4e4e285744eeda0667f9e44cd..44c95f99098fa6c6acbfa82d4b6cbc6015eb6e39:/apps/workbench/app/views/users/home.html.erb diff --git a/apps/workbench/app/views/users/home.html.erb b/apps/workbench/app/views/users/home.html.erb index fddd76c610..8d212cd52c 100644 --- a/apps/workbench/app/views/users/home.html.erb +++ b/apps/workbench/app/views/users/home.html.erb @@ -1,146 +1,5 @@ -<% content_for :head do %> - -<% end %> +<%# Copyright (C) The Arvados Authors. All rights reserved. -
-
-
-

Account summary

-
- <% [Human, Trait, Collection, 'File', PipelineTemplate, PipelineInstance].each do |aclass| %> -
- - <% if aclass == 'File' %> - <%= Collection.limit(4000).where({}).collect(&:files).flatten(1).count %> - <% else %> - <%= aclass.limit(4000).where({}).count %> - <% end %> - -
- <%= raw(aclass.to_s.pluralize.underscore.gsub '_', ' ') %> -
- <% end %> -
-
-
-
+SPDX-License-Identifier: AGPL-3.0 %> -
-
- -
-
-
-

Quick links

-
- -
-
-
-
-
-

Recent jobs

- <% if not current_user.andand.is_active or @my_jobs.empty? %> - (None) - <% else %> - - <% @my_jobs[0..8].each do |j| %> - - - - - - - <% end %> -
- - <%= link_to j.script[0..31], job_path(j.uuid) %> - - - - <%= j.script_version[0..7] %> - - - - <%= j.script_parameters.andand[:input].andand.to_s.andand[0..7] %> - - - <% if j.success %> - finished - <% elsif j.success == false %> - failed - <% elsif j.running and j.started_at and not j.finished_at %> - <% percent_total_tasks = 100 / (j.tasks_summary[:running] + j.tasks_summary[:done] + j.tasks_summary[:todo]) rescue 0 %> -
-
-
-
- <% else %> - queued - <% end %> -
- <%= link_to raw("Show more jobs / details →"), jobs_path, class: 'pull-right' %> - <% end %> -
-
-
+<%= render :partial => 'home' %>