-<% content_for :tutorials do %>
-<h4>Tutorials</h4>
-<% @tutorial_links.each do |tut| %>
-<div class="well clearfix">
- <div>
- <strong><%= tut.properties[:page_title] %></strong>
- <% if @tutorial_complete[tut.properties[:page_title]] %>
- <span class="badge badge-success pull-right">✔</span>
- <% else %>
- <span class="badge pull-right">✍</span>
- <% end %>
- </div>
- <%= render_content_from_database tut.properties[:page_subtitle] %>
- <br />
- <%= link_to raw('Tutorial: ' + tut.properties[:page_title] + ' ➜'), link_path(tut.uuid), class: "pull-right btn btn-primary" %>
-</div>
-<% end %>
-<% if not @tutorial_links.any? %>
-<div class="well clearfix">
- <div>
- <strong>Your first job</strong>
- <% if @my_last_job %>
- <span class="badge badge-success pull-right">✔</span>
- <% else %>
- <span class="badge pull-right">✍</span>
- <% end %>
- </div>
- Run your first Crunch job.
- <br />
- <%= link_to raw('Tutorial: Your first job ➜'), 'http://doc.arvados.org/user/tutorial-job1.html', class: "pull-right btn btn-primary" %>
-</div>
-<% end %>
-<% end %>
-
-<% content_for :references do %>
-<h4>References</h4>
-<div class="well clearfix">
- <div>
- <strong>API Reference</strong>
- </div>
- API calls for running jobs, building pipelines, and developing apps.
- <br />
- <%= link_to raw('API Reference ➜'), 'http://doc.arvados.org/api/', class: "pull-right btn" %>
-</div>
-<div class="well clearfix">
- <div>
- <strong>User Guide</strong>
- </div>
- Getting acquainted with the Arvados platform.
- <br />
- <%= link_to raw('User Guide ➜'), 'http://doc.arvados.org/user/', class: "pull-right btn" %>
-</div>
-<div class="well clearfix">
- <div>
- <strong>arvados.org</strong>
- </div>
- Project home page: developer docs, source code, background.
- <br />
- <%= link_to raw('arvados.org ➜'), 'https://arvados.org/', class: "pull-right btn" %>
-</div>
-<% end %>
-
-<% if current_user.andand.is_active %>
-<% content_for :manage_access do %>
-<h4>Setup</h4>
-<div class="well clearfix">
- <div>
- <strong>SSH keys</strong>
- <span class="badge <%= 'badge-success' if @my_ssh_keys.any? %> pull-right"><%= @my_ssh_keys.count %></span>
- </div>
- You’ll use public key authentication for logging in to
- VMs and using hosted git repositories.
- <br />
- <%= link_to raw('Add/edit keys ➜'), authorized_keys_path, class: "pull-right btn #{'btn-primary' if @my_ssh_keys.empty?}" %>
-</div>
-<div class="well clearfix">
- <div>
- <strong>Virtual machines</strong>
- <span class="badge <%= 'badge-success' if @my_vm_perms.any? %> pull-right"><%= @my_vm_perms.collect(&:head_uuid).uniq.count %></span>
- </div>
- Arvados includes virtual machines with SDKs installed and ready to use.
- <br />
- <% 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 %>
-</div>
-<div class="well clearfix">
- <div>
- <strong>Git repositories</strong>
- <span class="badge <%= 'badge-success' if @my_repo_perms.any? %> pull-right"><%= @my_repo_perms.collect(&:head_uuid).uniq.count %></span>
- </div>
- 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.
- <br />
- <% 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 %>
-</div>
-<% end %>
-<% end %>
-
-<div class="row-fluid">
- <div class="col span4">
- <% if content_for? :manage_access %>
- <%= yield :manage_access %>
- <% else %>
- <%= render partial: 'request_activation' %>
- <% end %>
- </div>
-
- <% if content_for? :tutorials %>
- <div class="col span4">
- <%= yield :tutorials %>
- </div>
- <% end %>
-
- <div class="col span4">
- <%= yield :references %>
- </div>
-</div>
+<%= render :partial => 'home' %>