X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c0e2292b4ed0065448e11fe3ecd7b0ee8c87ff4b..82c23c04e3105dfd0d2167a53552df56b0a81785:/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 28e6a5bcc2..9fb2c276a7 100644
--- a/apps/workbench/app/views/users/home.html.erb
+++ b/apps/workbench/app/views/users/home.html.erb
@@ -1,114 +1 @@
-<% if @tutorial_links.any? %>
-<% content_for :tutorials do %>
-
Tutorials
-<% @tutorial_links.each do |tut| %>
-
-
- <%= tut.properties[:page_title] %>
- <% if @tutorial_complete[tut.properties[:page_title]] %>
- ✔
- <% else %>
- ✍
- <% end %>
-
- <%= render_content_from_database tut.properties[:page_subtitle] %>
-
- <%= link_to raw('Tutorial: ' + tut.properties[:page_title] + ' ➜'), link_path(tut.uuid), class: "pull-right btn btn-primary" %>
-
-<% end %>
-<% end %>
-<% end %>
-
-<% content_for :references do %>
-References
-
-
- API Reference
-
- API calls for running jobs, building pipelines, and developing apps.
-
- <%= link_to raw('API Reference ➜'), 'http://doc.arvados.org/api/', class: "pull-right btn" %>
-
-
-
- User Guide
-
- Getting acquainted with the Arvados platform.
-
- <%= link_to raw('User Guide ➜'), 'http://doc.arvados.org/user/', class: "pull-right btn" %>
-
-
-
- arvados.org
-
- Project home page: developer docs, source code, background.
-
- <%= link_to raw('arvados.org ➜'), 'https://arvados.org/', class: "pull-right btn" %>
-
-<% end %>
-
-<% if current_user.andand.is_active %>
-<% content_for :manage_access do %>
-Setup
-
-
- SSH keys
- <%= @my_ssh_keys.count %>
-
- You’ll use public key authentication when logging in to a
- VM or use a hosted git repository.
-
- <%= link_to raw('Add/edit keys ➜'), authorized_keys_path, class: "pull-right btn #{'btn-primary' if @my_ssh_keys.empty?}" %>
-
-
-
- Virtual machines
- <%= @my_vm_perms.collect(&:head_uuid).uniq.count %>
-
- Arvados includes virtual machines with SDKs installed and ready to use.
-
- <% if @my_vm_perms.any? %>
- <%= link_to raw('Show VMs ➜'), virtual_machines_path, class: "pull-right btn" %>
- <% elsif @my_ssh_keys.any? %>
- <%= link_to raw('Request a VM ➜'), virtual_machines_path, class: "pull-right btn btn-primary" %>
- <% else %>
- <%= link_to raw('Request a VM ➜'), virtual_machines_path, { :class => "pull-right btn disabled", :"data-toggle" => "tooltip", :"data-placement" => "bottom", :title => "Add an SSH public key first!" } %>
- <% end %>
-
-
-
- Git repositories
- <%= @my_repo_perms.collect(&:head_uuid).uniq.count %>
-
- In order to run jobs using your own code, you need to push your code to a git repository. We provide hosted git repositories to make this easy.
-
- <% if @my_repo_perms.any? %>
- <%= link_to raw('Show repositories ➜'), repositories_path, class: "pull-right btn" %>
- <% elsif @my_ssh_keys.any? %>
- <%= link_to raw('Request a repository ➜'), repositories_path, class: "pull-right btn btn-primary" %>
- <% else %>
- <%= link_to raw('Request a repository ➜'), repositories_path, { :class => "pull-right btn disabled", :"data-toggle" => "tooltip", :"data-placement" => "bottom", :title => "Add an SSH public key first!" } %>
- <% end %>
-
-<% end %>
-<% end %>
-
-
-
- <% if content_for? :manage_access %>
- <%= yield :manage_access %>
- <% else %>
- <%= render partial: 'request_activation' %>
- <% end %>
-
-
- <% if content_for? :tutorials %>
-
- <%= yield :tutorials %>
-
- <% end %>
-
-
- <%= yield :references %>
-
-
+<%= render :partial => 'home' %>