Module: ProvisioningTemplatesHelperBranding

Defined in:
app/helpers/provisioning_templates_helper_branding.rb

Instance Method Summary collapse

Instance Method Details



2
3
4
5
6
7
8
9
10
11
# File 'app/helpers/provisioning_templates_helper_branding.rb', line 2

def link_to_if_authorized(name, options = {}, html_options = {})
  return super unless name.is_a?(ProvisioningTemplate)
  return super unless ProvisioningTemplatesControllerBranding::SUPPORTED_PROVISIONING_TEMPLATES.include?(name.name)

  image_tag(
    'foreman_theme_satellite/supported_icon.png',
    class: 'prov-brand-img',
    title: _('Supported by Red Hat')
  ).safe_concat(super)
end