closes #3140
[arvados.git] / apps / workbench / app / views / projects / index.html.erb
1 <% content_for :breadcrumbs do %>
2 <li class="nav-separator"><span class="glyphicon glyphicon-arrow-right"></span></li>
3 <li><a href="#">Home</a></li>
4 <% end %>
5
6 <div>
7   <div class="row">
8     <div class="col-sm-6">
9       <% if my_projects.empty? %>
10         <div class="panel panel-info">
11           <div class="panel-heading">
12             <h3 class="panel-title">
13               Welcome to <b><%= Rails.configuration.site_name %></b>.
14             </h3>
15           </div>
16           <div class="panel-body">
17             <img src="/favicon.ico" class="pull-right" alt="" style="opacity: 0.3"/>
18             <p>
19               This site runs Arvados, the open source biomedical analysis platform. <a href="https://arvados.org" target="_blank">Learn more&hellip;</a>
20             </p>
21             <p>
22               <b>To get started,</b> create a project using the "Add new project" button below.
23             </p>
24           </div>
25         </div>
26       <% end %>
27       <div class="panel panel-default">
28         <div class="panel-heading">
29           <div class="pull-right">
30             <%= button_to projects_path(method: 'post'), class: 'btn btn-xs btn-primary' do %>
31               <i class="fa fa-fw fa-plus"></i>
32               Add new project
33             <% end %>
34           </div>
35           <h3 class="panel-title">
36             My projects
37           </h3>
38         </div>
39         <div class="panel-body scroll-20em">
40           <%= render partial: 'index_projects', locals: {tree: my_project_tree, show_root_node: false} %>
41         </div>
42       </div>
43     </div>
44     <div class="col-sm-6">
45       <div class="panel panel-default">
46         <div class="panel-heading">
47           <h3 class="panel-title">
48             Projects shared with me
49           </h3>
50         </div>
51         <div class="panel-body scroll-20em">
52           <%= render partial: 'index_projects', locals: {tree: shared_project_tree, show_root_node: false} %>
53         </div>
54       </div>
55     </div>
56   </div>
57   <div class="row">
58     <div class="col-sm-12">
59       <div class="panel panel-default">
60         <div class="panel-heading">
61           <div class="pull-right">
62             <%= link_to jobs_path, class: 'btn btn-default btn-xs' do %>
63               All jobs <i class="fa fa-fw fa-arrow-circle-right"></i>
64             <% end %>
65             <%= link_to pipeline_instances_path, class: 'btn btn-default btn-xs' do %>
66               All pipelines <i class="fa fa-fw fa-arrow-circle-right"></i>
67             <% end %>
68           </div>
69           <h3 class="panel-title">
70             Recent jobs and pipelines
71           </h3>
72         </div>
73         <div class="panel-body">
74           <%= render partial: 'index_jobs_and_pipelines' %>
75         </div>
76       </div>
77     </div>
78   </div>
79 </div>