app/views/adminpanel/icons/_show.html.erb
<% if @model.has_route?(:show) %>
<%=
link_to(
content_tag(
:i,
nil,
class: 'fa fa-search-plus'
),
[resource],
class: 'spinner-link',
title: I18n.t('action.show', resource: resource.name),
id: 'show-resource-icon',
data: {
toggle: :tooltip,
placement: :left,
title: I18n.t('action.show', resource: resource.name)
}
)
%>
<% end %>