8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / application / _show_object_button.html.erb
1 <% htmloptions = {class: ''}.merge(htmloptions || {})
2    htmloptions[:class] += " btn-#{size}" rescue nil
3    link_text = 'Show' unless defined?(link_text) and link_text
4  %>
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
8     }, {
9       data: {
10         toggle: 'tooltip',
11         placement: 'top'
12       },
13       title: 'show ' + object.class_for_display.downcase,
14       class: 'btn btn-default ' + htmloptions[:class],
15     } %>