2872: Hide unnecessary scroll bar
[arvados.git] / apps / workbench / app / views / folders / _index_folders.html.erb
1 <div class="container-fluid arv-folder-list">
2   <% tree.each do |foldernode| %>
3     <% rowtype = foldernode[:object].class %>
4     <% next if rowtype != Group and !show_root_node %>
5     <div class="<%= 'folder' if rowtype == Group %> row">
6       <div class="col-md-12" style="padding-left: <%= foldernode[:depth] - (show_root_node ? 0 : 1) %>em;">
7         <% if show_root_node and rowtype == String %>
8           <i class="fa fa-fw fa-folder-open-o"></i>
9           <%= foldernode[:object] %>
10         <% elsif show_root_node and rowtype == User %>
11           <% if foldernode[:object].uuid == current_user.andand.uuid %>
12             <i class="fa fa-fw fa-folder-open-o"></i>
13             My Folders
14           <% else %>
15             <i class="fa fa-fw fa-folder-o"></i>
16             <%= foldernode[:object].friendly_link_name %>
17           <% end %>
18         <% elsif rowtype == Group %>
19           <i class="fa fa-fw fa-folder-o"></i>
20           <% opts = {} %>
21           <% opts[:title] = foldernode[:object].description %>
22           <% opts[:'data-toggle'] = 'tooltip' %>
23           <% opts[:'data-placement'] = 'bottom' %>
24           <%= link_to foldernode[:object], opts do %>
25             <%= foldernode[:object].friendly_link_name %>
26           <% end %>
27         <% end %>
28       </div>
29     </div>
30   <% end %>
31 </div>