2 <%= link_to projects_path, method: :post, class: 'btn btn-xs btn-default pull-right' do %>
3 <i class="fa fa-plus"></i> Add a new project
7 <%= project_link_to.call({object: current_user, depth: 0}) do %>
8 <span style="padding-left: 0"></span>Home
11 <% my_project_tree.each do |pnode| %>
12 <% next if pnode[:object].class != Group %>
14 <%= project_link_to.call pnode do %>
15 <span style="padding-left: <%= pnode[:depth] %>em"></span><%= pnode[:object].name %>
19 <li class="divider" />
20 <li role="presentation" class="dropdown-header">
21 Projects shared with me
23 <% shared_project_tree.each do |pnode| %>
24 <% next if pnode[:object].class != Group %>
26 <%= project_link_to.call pnode do %>
27 <span style="padding-left: <%= pnode[:depth]-1 %>em"></span><i class="fa fa-fw fa-share-alt" style="color:#aaa"></i> <%= pnode[:object].name %>