X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cec09589e50ced6d0b7a0d90d5ca124241d4a58a..0b187b107128a57c1f0c00057d39979ab53d4137:/apps/workbench/app/views/application/_selection_checkbox.html.erb diff --git a/apps/workbench/app/views/application/_selection_checkbox.html.erb b/apps/workbench/app/views/application/_selection_checkbox.html.erb index 25aef94cdb..47e1dfdecf 100644 --- a/apps/workbench/app/views/application/_selection_checkbox.html.erb +++ b/apps/workbench/app/views/application/_selection_checkbox.html.erb @@ -1,5 +1,5 @@ -<%if object 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 +<%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 and not friendly_name.nil? friendly_name else link_to_if_arvados_object object, {no_link: true} @@ -11,6 +11,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 }",