1 <% htmloptions = {class: ''}.merge(htmloptions || {})
2 htmloptions[:class] += " btn-#{size}" rescue nil
3 link_text = 'Show' unless defined?(link_text) and link_text
5 <%= link_to_if_arvados_object object, {
6 link_text: raw('<i class="fa fa-fw ' + fa_icon_class_for_object(object) + '"></i> ' + link_text),
7 name_link: (defined?(name_link) && name_link && name_link.uuid) ? name_link : nil
13 title: 'show ' + object.class_for_display.downcase,
14 class: 'btn btn-default ' + htmloptions[:class],