Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / application / _show_object_button.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <% htmloptions = {class: ''}.merge(htmloptions || {})
6    htmloptions[:class] += " btn-#{size}" rescue nil
7    link_text = 'Show' unless defined?(link_text) and link_text
8  %>
9 <%= link_to_if_arvados_object object, {
10       link_text: raw('<i class="fa fa-fw ' + fa_icon_class_for_object(object) + '"></i> ' + link_text),
11       name_link: (defined?(name_link) && name_link && name_link.uuid) ? name_link : nil
12     }, {
13       data: {
14         toggle: 'tooltip',
15         placement: 'top'
16       },
17       title: 'show ' + object.class_for_display.downcase,
18       class: 'btn btn-default ' + htmloptions[:class],
19     } %>