1 <% @collections.each do |c| %>
3 <tr class="collection" data-object-uuid="<%= c.uuid %>">
5 <%= render :partial => "selection_checkbox", :locals => {:object => c} %>
8 <%= link_to_if_arvados_object c.uuid %>
12 <% while i < 3 and i < c.files.length %>
13 <% file = c.files[i] %>
14 <% file_path = "#{file[0]}/#{file[1]}" %>
15 <%= 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 />
18 <% if i < c.files.length %>
22 <td><%= link_to_if_arvados_object c.owner_uuid, friendly_name: true %></td>
24 <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about ','~').sub(' ',' ')) if c.created_at %>
27 <% if @collection_info[c.uuid][:wanted_by_me] %>
28 <span class="label label-info">2×</span>
29 <% elsif @collection_info[c.uuid][:wanted] %>
30 <span class="label">2×</span>
32 <span class="label">cache</span>
35 <td class="add-tag-button">
36 <a class="btn btn-xs btn-info add-tag-button pull-right" data-remote-href="<%= url_for(controller: 'links', action: 'create') %>" data-remote-method="post"><i class="glyphicon glyphicon-plus"></i> Add</a>
37 <span class="removable-tag-container">
38 <% if @collection_info[c.uuid] %>
39 <% @collection_info[c.uuid][:tag_links].each do |tag_link| %>
40 <span class="label label-info removable-tag" data-tag-link-uuid="<%= tag_link.uuid %>"><%= tag_link.name %>
41 <% if tag_link.owner_uuid == current_user.uuid %>
42 <a title="Delete tag"><i class="glyphicon glyphicon-trash"></i></a>