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