<%# Copyright (C) The Arvados Authors. All rights reserved. SPDX-License-Identifier: AGPL-3.0 %> <% htmloptions = {class: ''}.merge(htmloptions || {}) htmloptions[:class] += " btn-#{size}" rescue nil link_text = 'Show' unless defined?(link_text) and link_text %> <%= link_to_if_arvados_object object, { link_text: raw(' ' + link_text), name_link: (defined?(name_link) && name_link && name_link.uuid) ? name_link : nil }, { data: { toggle: 'tooltip', placement: 'top' }, title: 'show ' + object.class_for_display.downcase, class: 'btn btn-default ' + htmloptions[:class], } %>