Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / collections / _choose_rows.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <% @objects.each do |object| %>
6     <div class="row filterable selectable <%= 'use-preview-selection' if params['use_preview_selection']%>" data-object-uuid="<%= object.uuid %>"
7          data-preview-href="<%= chooser_preview_url_for object, params['use_preview_selection'] %>"
8          style="margin-left: 1em; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #DDDDDD">
9       <i class="fa fa-fw fa-archive"></i>
10       <% if object.respond_to? :name %>
11         <% if not (object.name.nil? or object.name.empty?) %>
12           <%= object.name %>
13         <% elsif object.is_a? Collection and object.files.length > 0 %>
14           <%= object.files[0][1] %>
15           <%= "+ #{object.files.length-1} more" if object.files.length > 1 %>
16         <% else %>
17           <%= object.uuid %>
18         <% end %>
19       <% else %>
20         <%= object.uuid %>
21       <% end %>
22       <% links_for_object(object).each do |tag| %>
23         <% if tag.link_class == 'tag' %>
24           <span class="label label-info"><%= tag.name %></span>
25         <% end %>
26       <% end %>
27     </div>
28 <% end %>