5493: (thanks to tom) modal paging is awesome.
[arvados.git] / apps / workbench / app / views / application / _selection_checkbox.html.erb
index 7af11752c8e2540e439c0fdc1d7ce4d906b78080..a234e9f65696d94d0b11ff864b89949232dd9966 100644 (file)
@@ -1,5 +1,5 @@
-<%if object %>
-  <% 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}