X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/740dcfdd2c1f493e2d200efe5739e8b449c77ff1..8c8391fa8c763032742bdc0d6fa0c02ca336a82a:/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 8cdb79584d..bf14fdd854 100644 --- a/apps/workbench/app/views/users/home.html.erb +++ b/apps/workbench/app/views/users/home.html.erb @@ -8,8 +8,14 @@ margin-left: auto; margin-right: auto; } + .job-table { + white-space: nowrap; + table-layout: fixed; + } .job-table td { + overflow: hidden; overflow-x: hidden; + text-overflow: ellipsis; } .centerme { margin-left: auto; @@ -20,143 +26,85 @@ font-size: 4em; font-weight: bold; } + .dax { + max-width: 10%; + margin-right: 1em; + float: left + } + .daxalert { + overflow: hidden; + } <% end %> <% if current_user.andand.is_active %> +
+ +
-<% if @my_ssh_keys.count == 0%> -
- -
- <%= image_tag "dax.png", style: "max-width: 10%; margin-right: 1em; float: left" %> - Hi, I noticed that you have not yet set up an SSH public key for use with Arvados. - <%= link_to "Click here to learn about SSH keys in Arvados.", - "http://doc.arvados.org/user/getting_started/ssh-access.html", style: "font-weight: bold" %> - Once have an SSH key you would like to use, paste your SSH public key - in the text box. -
- <%= form_for AuthorizedKey.new do |f| %> - <%= hidden_field_tag :return_to, request.original_url %> - <%= f.text_area :public_key, cols: 50, rows: 4, placeholder: "Paste your public key here", style: "width: 45%" %> - <%= f.submit :Save, value: raw("✓"), class: "btn btn-primary", style: "vertical-align: top" %> - <% end %> -
-<% end %> - -<% if Collection.limit(1).where(created_by: current_user.uuid).count == 0 %> -
- -

<%= image_tag "dax.png", style: "max-width: 5%; margin-right: 1em" %> - Hi, I noticed you haven't uploaded a new collection yet. - <%= link_to "Click here to learn how to upload data to Arvados Keep.", "http://doc.arvados.org/user/tutorials/tutorial-keep.html", style: "font-weight: bold" %> -

-
- -<% end %> - -<% if Job.limit(1).where(created_by: current_user.uuid).count == 0 %> -
- -

<%= image_tag "dax.png", style: "max-width: 5%; margin-right: 1em" %> - Hi, I noticed you haven't run a job yet. - <%= link_to "Click here to learn how to run an Arvados Crunch job.", "http://doc.arvados.org/user/tutorials/tutorial-job1.html", style: "font-weight: bold" %> -

-
-<% end %> - -<% if PipelineInstance.limit(1).where(created_by: current_user.uuid).count == 0 %> -
- -

<%= image_tag "dax.png", style: "max-width: 5%; margin-right: 1em" %> - Hi, I noticed you haven't run a pipeline yet. - <%= link_to "Click here to learn how to run an Arvados Crunch pipeline.", "http://doc.arvados.org/user/tutorials/tutorial-new-pipeline.html", style: "font-weight: bold" %> -

-
-<% end %> - -
-
-
-

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 %> -
-
-
-
- -
- -
- <%= render partial: 'quick_links' %> -
-
-
-

Recent jobs

+
+ Recent jobs + <%= link_to raw("Show all jobs →"), jobs_path, class: 'pull-right' %> <% if not current_user.andand.is_active or @my_jobs.empty? %> (None) <% else %> - <% @my_jobs[0..8].each do |j| %> + + + + + + + + + + + + + + + + + <% @my_jobs[0..6].each do |j| %> + + + + + - + + + + <% end %> +
ScriptOutputLogStatusAge
<%= link_to j.script[0..31], job_path(j.uuid) %> + + <% if j.success %> + + + <% Collection.limit(1).where(uuid: j.output).each do |c| + c.files.each do |file| %> + <%= "#{file[0]}/#{file[1]}" %> + <% end %> + <% end %> + + + <% end %> + + + + <% if j.success %> + Log + <% end %> + + - <%= j.script_version[0..7] %> - - - - <%= j.script_parameters.andand[:input].andand.to_s.andand[0..7] %> +<%= raw(distance_of_time_in_words(j[:created_at], Time.now).sub('about +','~').sub(' ',' ')) if j[:created_at] %> ago <% if j.success %> finished @@ -172,13 +120,181 @@ queued <% end %>
+ <% end %> +
+ +
+ Recent pipeline instances + <%= link_to raw("Show all pipeline instances →"), jobs_path, class: 'pull-right' %> + <% if not current_user.andand.is_active or @my_pipelines.empty? %> + (None) + <% else %> + + + + + + + + + + + + + + <% @my_pipelines[0..6].each do |p| %> + + + + + + + + + <% end %> +
Pipeline templateAgeStatus
+ + <% PipelineTemplate.limit(1).where(uuid: p.pipeline_template_uuid).each do |i| %> + <%= link_to i.name, pipeline_instance_path(p.uuid) %> + <% end %> + + + +<%= raw(distance_of_time_in_words(p[:created_at], Time.now).sub('about +','~').sub(' ',' ')) if p[:created_at] %> ago + + + <% if p.success %> + finished + <% elsif p.success == false %> + failed + <% elsif p.active %> + running + <% else %> + queued + <% end %> +
+ <% end %> +
+ +
+ Recent collections + <%= link_to raw("Show all collections →"), collections_path, class: 'pull-right' %> + <% if not current_user.andand.is_active or @my_collections.empty? %> + (None) + <% else %> + + + + + + + + + + + + <% @my_collections[0..6].each do |c| %> + + + <% end %>
ContentsAge
+ + + <% c.files.each do |file| %> + <%= "#{file[0]}/#{file[1]}" %> + <% end %> + + + + +<%= raw(distance_of_time_in_words(c[:created_at], Time.now).sub('about +','~').sub(' ',' ')) if c[:created_at] %> ago + +
- <%= link_to raw("Show more jobs / details →"), jobs_path, class: 'pull-right' %> <% end %>
+ +
+<% if @my_ssh_keys.count == 0%> +
+ + <%= image_tag "dax.png", class: "dax" %> +
+ Hi, I noticed that you have not yet set up an SSH public key for use with Arvados. + <%= link_to "Click here to learn about SSH keys in Arvados.", + "http://doc.arvados.org/user/getting_started/ssh-access.html", + style: "font-weight: bold", + target: "_blank" %> + When you have an SSH key you would like to use, paste the SSH public key + in the text box. +
+ <%= form_for AuthorizedKey.new do |f| %> + <%= hidden_field_tag :return_to, request.original_url %> + <%= f.text_area :public_key, cols: 50, rows: 4, placeholder: "Paste your public key here", style: "width: 100%" %> + <%= f.submit :Save, value: raw("✓"), class: "btn btn-primary pull-right" %> + <% end %> +
+<% end %> + +<% if @my_collections.count == 0 %> +
+ + <%= image_tag "dax.png", class: "dax" %> +

+ Hi, I noticed you haven't uploaded a new collection yet. + <%= link_to "Click here to learn how to upload data to Arvados Keep.", + "http://doc.arvados.org/user/tutorials/tutorial-keep.html", + style: "font-weight: bold", target: "_blank" %> +

+
+ +<% end %> + +<% if @my_jobs.count == 0 %> +
+ +

<%= image_tag "dax.png", class: "dax" %> + Hi, I noticed you haven't run a job yet. + <%= link_to "Click here to learn how to run an Arvados Crunch job.", + "http://doc.arvados.org/user/tutorials/tutorial-job1.html", + style: "font-weight: bold", + target: "_blank" %> +

+
+<% end %> + +<% if @my_pipelines.count == 0 %> +
+ +

<%= image_tag "dax.png", class: "dax" %> + Hi, I noticed you haven't run a pipeline yet. + <%= link_to "Click here to learn how to run an Arvados Crunch pipeline.", + "http://doc.arvados.org/user/tutorials/tutorial-new-pipeline.html", + style: "font-weight: bold", + target: "_blank" %> +

+
+<% end %> + +
+

Useful links

+

    +
  • <%= link_to "Arvados project page", "http://arvados.org", target: "_blank" %>
  • +
  • <%= link_to "Tutorials and user guide", + "http://doc.arvados.org/user/", target: "_blank" %>
  • +
+

+
+ +
<% elsif current_user %>