1 <div class="container-fluid arv-project-list">
2 <% tree.each do |projectnode| %>
3 <% rowtype = projectnode[:object].class %>
4 <% next if rowtype != Group and !show_root_node %>
5 <div class="<%= 'project' if rowtype.in?([Group,User]) %> row">
6 <div class="col-md-4" style="padding-left: <%= projectnode[:depth] - (show_root_node ? 0 : 1) %>em;">
7 <% if show_root_node and rowtype == String %>
8 <i class="fa fa-fw fa-share-alt"></i>
9 <%= projectnode[:object] %>
10 <% elsif show_root_node and rowtype == User %>
11 <% if projectnode[:object].uuid == current_user.andand.uuid %>
12 <i class="fa fa-fw fa-folder-o"></i>
13 <%= link_to project_path(id: projectnode[:object].uuid) do %>
17 <i class="fa fa-fw fa-folder-o"></i>
18 <%= projectnode[:object].friendly_link_name %>
20 <% elsif rowtype == Group %>
21 <i class="fa fa-fw fa-folder-o"></i>
22 <%= link_to projectnode[:object] do %>
23 <%= projectnode[:object].friendly_link_name %>
27 <% if projectnode[:object].respond_to?(:description) and not projectnode[:object].description.blank? %>
28 <div class="col-md-8 small"><%= render_attribute_as_textile(projectnode[:object], "description", projectnode[:object].description, true) %></div>