8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / projects / _index_projects.html.erb
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 %>
14               Home
15             <% end %>
16           <% else %>
17             <i class="fa fa-fw fa-folder-o"></i>
18             <%= projectnode[:object].friendly_link_name %>
19           <% end %>
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 %>
24           <% end %>
25         <% end %>
26       </div>
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>
29       <% end %>
30     </div>
31   <% end %>
32 </div>