1 <% @collections.each do |c| %>
3 <tr class="collection" data-object-uuid="<%= c.uuid %>">
5 <% friendly_name = c.friendly_link_name %>
6 <% @collection_info[c.uuid][:tag_links].each do |tag_link| %>
7 <% friendly_name += raw(" <span class='label label-info'>#{tag_link.name}</span>") %>
9 <%= render :partial => "selection_checkbox", :locals => {:object => c, :friendly_name => friendly_name} %>
11 <%= render :partial => "show_object_button", :locals => {object: c, size: 'xs'} %>
18 <% while i < 3 and i < c.files.length %>
19 <% file = c.files[i] %>
20 <% file_path = "#{file[0]}/#{file[1]}" %>
21 <%= 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 />
24 <% if i < c.files.length %>
29 <%= c.created_at.to_s if c.created_at %>
31 <td class="add-tag-button">
32 <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>
33 <span class="removable-tag-container">
34 <% if @collection_info[c.uuid] %>
35 <% @collection_info[c.uuid][:tag_links].each do |tag_link| %>
36 <span class="label label-info removable-tag" data-tag-link-uuid="<%= tag_link.uuid %>"><%= tag_link.name %>
37 <% if tag_link.owner_uuid == current_user.uuid %>
38 <a title="Delete tag"><i class="glyphicon glyphicon-trash"></i></a>