1 <% @collections.each do |c| %>
3 <tr class="collection">
5 <%= link_to_if_arvados_object c.uuid %>
9 <% while i < 3 and i < c.files.length %>
10 <% file = c.files[i] %>
11 <% file_path = "#{file[0]}/#{file[1]}" %>
12 <%= link_to file[1], {controller: 'collections', action: 'show_file', uuid: c.uuid, file: file_path, size: file[2], disposition: 'inline'}, {title: 'View in browser'} %><br />
15 <% if i < c.files.length %>
19 <td><%= link_to_if_arvados_object c.owner_uuid, friendly_name: true %></td>
21 <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about ','~').sub(' ',' ')) if c.created_at %>
24 <% if @collection_info[c.uuid] %>
25 <%= @collection_info[c.uuid][:tags].uniq.join ', ' %>
29 <% if @collection_info[c.uuid][:wanted_by_me] %>
30 <span class="label label-info">2×</span>
31 <% elsif @collection_info[c.uuid][:wanted] %>
32 <span class="label">2×</span>
34 <span class="label">cache</span>