Merge remote-tracking branch 'origin' into 1786-replace-jekyll-with-zenweb
[arvados.git] / apps / workbench / app / views / collections / _index_tbody.html.erb
1 <% @collections.each do |c| %>
2
3 <tr class="collection">
4   <td>
5     <%= link_to_if_arvados_object c.uuid %>
6   </td><td>
7     <% c.files.each do |file| %>
8       <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
9     <% end %>
10   </td><td>
11     <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about ','~').sub(' ','&nbsp;')) if c.created_at %>
12   </td><td>
13     <% if @collection_info[c.uuid] %>
14       <%= @collection_info[c.uuid][:tags].uniq.join ', ' %>
15     <% end %>
16   </td><td>
17     <% if @collection_info[c.uuid][:wanted_by_me] %>
18       <span class="label label-info">2&times;</span>
19     <% elsif @collection_info[c.uuid][:wanted] %>
20       <span class="label">2&times;</span>
21     <% else %>
22       <span class="label">cache</span>
23     <% end %>
24   </td>
25 </tr>
26
27 <% end %>