rename more foreign uuid attributes
[arvados.git] / apps / workbench / app / views / users / home.html.erb
1 <% content_for :tutorials do %>
2 <h4>Tutorials</h4>
3 <% @tutorial_links.each do |tut| %>
4 <div class="well clearfix">
5   <div>
6     <strong><%= tut.properties[:page_title] %></strong>
7     <% if @tutorial_complete[tut.properties[:page_title]] %>
8     <span class="badge badge-success pull-right">&#x2714;</span>
9     <% else %>
10     <span class="badge pull-right">&#x270d;</span>
11     <% end %>
12   </div>
13   <%= render_content_from_database tut.properties[:page_subtitle] %>
14   <br />
15   <%= link_to raw('Tutorial: ' + tut.properties[:page_title] + ' &#x279c;'), link_path(tut.uuid), class: "pull-right btn btn-primary" %>
16 </div>
17 <% end %>
18 <% if not @tutorial_links.any? %>
19 <div class="well clearfix">
20   <div>
21     <strong>Your first job</strong>
22     <% if @my_last_job %>
23     <span class="badge badge-success pull-right">&#x2714;</span>
24     <% else %>
25     <span class="badge pull-right">&#x270d;</span>
26     <% end %>
27   </div>
28   Run your first Crunch job.
29   <br />
30   <%= link_to raw('Tutorial: Your first job &#x279c;'), 'http://doc.arvados.org/user/tutorial-job1.html', class: "pull-right btn btn-primary" %>
31 </div>
32 <div class="well clearfix">
33   <div>
34     <strong>Search PGP data by trait</strong>
35   </div>
36   Find PGP participants who reported a medical condition, and find WGS data for them.
37   <br />
38   <%= link_to raw('Tutorial: Search PGP data &#x279c;'), 'http://doc.arvados.org/user/tutorial-trait-search.html', class: "pull-right btn btn-primary" %>
39 </div>
40 <% end %>
41 <% end %>
42
43 <% content_for :references do %>
44 <h4>References</h4>
45 <div class="well clearfix">
46   <div>
47     <strong>API Reference</strong>
48   </div>
49   API calls for running jobs, building pipelines, and developing apps.
50   <br />
51   <%= link_to raw('API Reference &#x279c;'), 'http://doc.arvados.org/api/', class: "pull-right btn" %>
52 </div>
53 <div class="well clearfix">
54   <div>
55     <strong>User Guide</strong>
56   </div>
57   Getting acquainted with the Arvados platform.
58   <br />
59   <%= link_to raw('User Guide &#x279c;'), 'http://doc.arvados.org/user/', class: "pull-right btn" %>
60 </div>
61 <div class="well clearfix">
62   <div>
63     <strong>arvados.org</strong>
64   </div>
65   Project home page: developer docs, source code, background.
66   <br />
67   <%= link_to raw('arvados.org &#x279c;'), 'https://arvados.org/', class: "pull-right btn" %>
68 </div>
69 <% end %>
70
71 <% if current_user.andand.is_active %>
72 <% content_for :manage_access do %>
73 <h4>Setup</h4>
74 <div class="well clearfix">
75   <div>
76     <strong>SSH keys</strong>
77     <span class="badge <%= 'badge-success' if @my_ssh_keys.any? %> pull-right"><%= @my_ssh_keys.count %></span>
78   </div>
79   You&rsquo;ll use public key authentication for logging in to
80   VMs and using hosted git repositories.
81   <br />
82   <%= link_to raw('Add/edit keys &#x279c;'), authorized_keys_path, class: "pull-right btn #{'btn-primary' if @my_ssh_keys.empty?}" %>
83 </div>
84 <div class="well clearfix">
85   <div>
86     <strong>Virtual machines</strong>
87     <span class="badge <%= 'badge-success' if @my_vm_perms.any? %> pull-right"><%= @my_vm_perms.collect(&:head_uuid).uniq.count %></span>
88   </div>
89   Arvados includes virtual machines with SDKs installed and ready to use.
90   <br />
91   <% if @my_vm_perms.any? %>
92   <%= link_to raw('Show VMs &#x279c;'), virtual_machines_path, class: "pull-right btn" %>
93   <% elsif @my_ssh_keys.any? %>
94   <%= link_to raw('Request a VM &#x279c;'), virtual_machines_path, class: "pull-right btn btn-primary" %>
95   <% else %>
96   <%= link_to raw('Request a VM &#x279c;'), virtual_machines_path, { :class => "pull-right btn disabled", :"data-toggle" => "tooltip", :"data-placement" => "bottom", :title => "Add an SSH public key first!" } %>
97   <% end %>
98 </div>
99 <div class="well clearfix">
100   <div>
101     <strong>Git repositories</strong>
102     <span class="badge <%= 'badge-success' if @my_repo_perms.any? %> pull-right"><%= @my_repo_perms.collect(&:head_uuid).uniq.count %></span>
103   </div>
104   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.
105   <br />
106   <% if @my_repo_perms.any? %>
107   <%= link_to raw('Show repositories &#x279c;'), repositories_path, class: "pull-right btn" %>
108   <% elsif @my_ssh_keys.any? %>
109   <%= link_to raw('Request a repository &#x279c;'), repositories_path, class: "pull-right btn btn-primary" %>
110   <% else %>
111   <%= link_to raw('Request a repository &#x279c;'), repositories_path, { :class => "pull-right btn disabled", :"data-toggle" => "tooltip", :"data-placement" => "bottom", :title => "Add an SSH public key first!" } %>
112   <% end %>
113 </div>
114 <% end %>
115 <% end %>
116
117 <div class="row-fluid">
118   <div class="col span4">
119     <% if content_for? :manage_access %>
120     <%= yield :manage_access %>
121     <% else %>
122     <%= render partial: 'request_activation' %>
123     <% end %>
124   </div>
125
126   <% if content_for? :tutorials %>
127   <div class="col span4">
128     <%= yield :tutorials %>
129   </div>
130   <% end %>
131
132   <div class="col span4">
133     <%= yield :references %>
134   </div>
135 </div>