%# Copyright (C) The Arvados Authors. All rights reserved.
SPDX-License-Identifier: AGPL-3.0 %>
<% starred_projects = my_starred_projects current_user%>
<% if starred_projects.andand.any? %>
<%= project_link_to.call({object: current_user, depth: 0}) do %>
Home
<% end %>
<% (starred_projects).each do |pnode| %>
<%= project_link_to.call({object: pnode, depth: 0}) do%>
<%= pnode[:name] %>
<% end %>
<% end %>
<% end %>
<%= project_link_to.call({object: current_user, depth: 0}) do %>
Home
<% end %>
<% my_tree = my_wanted_projects_tree current_user %>
<% my_tree[0].each do |pnode| %>
<% next if pnode[:object].class != Group %>
<%= project_link_to.call pnode do %>
<%= pnode[:object].name %>
<% end %>
<% end %>
<% if my_tree[1] or my_tree[0].size > 200 %>
<% elsif my_tree[2] %>
<% end %>