<% tree.each do |projectnode| %> <% rowtype = projectnode[:object].class %> <% next if rowtype != Group and !show_root_node %>
<% if show_root_node and rowtype == String %> <%= projectnode[:object] %> <% elsif show_root_node and rowtype == User %> <% if projectnode[:object].uuid == current_user.andand.uuid %> My Projects <% else %> <%= projectnode[:object].friendly_link_name %> <% end %> <% elsif rowtype == Group %> <% opts = {} %> <% opts[:title] = projectnode[:object].description %> <% opts[:'data-toggle'] = 'tooltip' %> <% opts[:'data-placement'] = 'bottom' %> <%= link_to projectnode[:object], opts do %> <%= projectnode[:object].friendly_link_name %> <% end %> <% end %>
<% end %>