1 <% @collections.each do |object| %>
2 <div class="row filterable selectable" data-object-uuid="<%= object.uuid %>"
3 data-preview-href="<%= chooser_preview_url_for object %>"
4 style="margin-left: 1em; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #DDDDDD">
5 <i class="fa fa-fw fa-archive"></i>
6 <% if object.respond_to? :name %>
7 <% if not (object.name.nil? or object.name.empty?) %>
9 <% elsif object.is_a? Collection and object.files.length > 0 %>
10 <%= object.files[0][1] %>
11 <%= "+ #{object.files.length-1} more" if object.files.length > 1 %>
18 <% links_for_object(object).each do |tag| %>
19 <% if tag.link_class == 'tag' %>
20 <span class="label label-info"><%= tag.name %></span>
26 <% @name_links.each do |name_link| %>
27 <% if (object = get_object(name_link.head_uuid)) %>
28 <div class="row filterable selectable" data-object-uuid="<%= name_link.uuid %>"
29 data-preview-href="<%= chooser_preview_url_for object %>"
30 style="margin-left: 1em; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #DDDDDD">
31 <i class="fa fa-fw fa-archive"></i>
33 <% links_for_object(object).each do |tag| %>
34 <% if tag.link_class == 'tag' %>
35 <span class="label label-info"><%= tag.name %></span>