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