Merge branch 'master' into 3112-report-bug
[arvados.git] / apps / workbench / app / views / application / _projects_tree_menu.html.erb
1               <li>
2                 <%= project_link_to.call({object: current_user, depth: 0}) do %>
3                   <span style="padding-left: 0"></span>Home
4                 <% end %>
5               </li>
6               <% my_project_tree.each do |pnode| %>
7                 <% next if pnode[:object].class != Group %>
8                 <li>
9                   <%= project_link_to.call pnode do %>
10                     <span style="padding-left: <%= pnode[:depth] %>em"></span><%= pnode[:object].name %>
11                   <% end %>
12                 </li>
13               <% end %>
14               <li class="divider" />
15               <li role="presentation" class="dropdown-header">
16                 Projects shared with me
17               </li>
18               <% shared_project_tree.each do |pnode| %>
19                 <% next if pnode[:object].class != Group %>
20                 <li>
21                   <%= project_link_to.call pnode do %>
22                     <span style="padding-left: <%= pnode[:depth]-1 %>em"></span><i class="fa fa-fw fa-share-alt" style="color:#aaa"></i> <%= pnode[:object].name %>
23                   <% end %>
24                 </li>
25               <% end %>