2872: Fix links to collections from folder view.
[arvados.git] / apps / workbench / app / views / application / _show_object_button.html.erb
index 17e9737f091658a87d580747c4d413aac3d5f4a6..4f6eb7e92c0f25534b1c8dc9d8b4628954156d13 100644 (file)
@@ -1,12 +1,13 @@
 <% htmloptions = {class: ''}.merge(htmloptions || {})
    htmloptions[:class] += " btn-#{size}" rescue nil %>
 <%= link_to_if_arvados_object object, {
-      link_text: raw('<i class="fa fa-fw ' + fa_icon_class_for_object(object) + '"></i>')
+      link_text: raw('<i class="fa fa-fw ' + fa_icon_class_for_object(object) + '"></i>'),
+      name_link: (defined?(name_link) && name_link && name_link.uuid) ? name_link : nil
     }, {
       data: {
         toggle: 'tooltip',
         placement: 'top'
       },
       title: 'show',
-      class: 'btn btn-default btn-nodecorate ' + htmloptions[:class]
+      class: 'btn btn-default btn-nodecorate ' + htmloptions[:class],
     } %>