Merge branch '2411-check-copyright'
[arvados.git] / apps / workbench / app / views / application / _selection_checkbox.html.erb
index de880dd8c6fbe95acad050a0c6c44d7eca3ac91d..af65a6d9826686ccdde2164357ce6c2304a39d69 100644 (file)
@@ -1,5 +1,9 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
 <%if object and object.uuid and (object.class.goes_in_projects? or (object.is_a?(Link) and ArvadosBase::resource_class_for_uuid(object.head_uuid).to_s == 'Collection')) %>
-  <% fn = if defined? friendly_name
+  <% fn = if defined? friendly_name and not friendly_name.nil?
             friendly_name
           else
             link_to_if_arvados_object object, {no_link: true}
@@ -11,6 +15,7 @@
      fn = String.new fn %>
 <%= check_box_tag 'uuids[]', object.uuid, false, {
       :class => 'persistent-selection',
+      :id => object.uuid,
       :friendly_type => object.class.name,
       :friendly_name => fn,
       :href => "#{url_for controller: object.class.name.tableize, action: 'show', id: object.uuid }",