refs #3055
[arvados.git] / apps / workbench / app / views / application / _projects_tree_menu.html.erb
1             <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="projects-menu">
2               <i class="fa fa-lg fa-fw fa-home"></i>
3               Projects
4               <span class="caret"></span>
5             </a>
6             <ul class="dropdown-menu" role="menu">
7               <li role="presentation" class="dropdown-header">
8                 <%= top_button.call %>
9                 My projects
10               </li>
11               <% my_project_tree.each do |pnode| %>
12                 <% next if pnode[:object].class != Group %>
13                 <li style="padding-left: <%= pnode[:depth]-1 %>em">
14                   <%= project_link_to.call pnode do %>
15                     <%= pnode[:object].name %>
16                   <% end %>
17                 </li>
18               <% end %>
19               <li class="divider">
20               <li role="presentation" class="dropdown-header">
21                 Projects shared with me
22               </li>
23               <% shared_project_tree.each do |pnode| %>
24                 <% next if pnode[:object].class != Group %>
25                 <li style="padding-left: <%= pnode[:depth]-1 %>em">
26                   <%= project_link_to.call pnode do %>
27                     <i class="fa fa-fw fa-share-alt" style="color:#aaa"></i> <%= pnode[:object].name %>
28                   <% end %>
29                 </li>
30               <% end %>
31             </ul>