2884: AJAX load a preview panel in collection and pipeline template picker.
[arvados.git] / apps / workbench / app / views / collections / _choose_rows.html.erb
1 <% @name_links.each do |name_link| %>
2   <% if (object = get_object(name_link.head_uuid)) %>
3     <div class="row filterable selectable <%= 'multiple' if multiple %>" data-object-uuid="<%= name_link.uuid %>"
4          data-preview-href="<%= url_for object %>?tab_pane=chooser_preview"
5          style="margin-left: 1em; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #DDDDDD">
6         <i class="fa fa-fw fa-archive"></i>
7         <%= name_link.name %>
8     <% Link.filter([['link_class','=','tag'],['head_uuid','=',object.uuid]]).collect(&:name).each do |tagname| %>
9       <span class="label label-info"><%= tagname %></span>
10     <% end %>
11     </div>
12   <% end %>
13 <% end %>