1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% starred_projects = my_starred_projects current_user%>
6 <% if starred_projects.andand.any? %>
7 <li role="presentation" class="dropdown-header">
11 <%= project_link_to.call({object: current_user, depth: 0}) do %>
12 <span style="padding-left: 0">Home</span>
15 <% (starred_projects).each do |pnode| %>
17 <%= project_link_to.call({object: pnode, depth: 0}) do%>
18 <span style="padding-left: 0em"></span><%= pnode[:name] %>
22 <li role="presentation" class="divider"></li>
25 <li role="presentation" class="dropdown-header">
29 <%= project_link_to.call({object: current_user, depth: 0}) do %>
30 <span style="padding-left: 0">Home</span>
33 <% my_tree = my_wanted_projects_tree current_user %>
34 <% my_tree[0].each do |pnode| %>
35 <% next if pnode[:object].class != Group %>
37 <%= project_link_to.call pnode do %>
38 <span style="padding-left: <%= pnode[:depth] %>em"></span><%= pnode[:object].name %>
42 <% if my_tree[1] or my_tree[0].size > 200 %>
43 <li role="presentation" class="dropdown-header">
44 Some projects have been omitted.
46 <% elsif my_tree[2] %>
47 <li role="presentation" class="dropdown-header">
48 Showing top three levels of your projects.