Module: ProvisioningTemplatesHelperBranding
- Defined in:
- app/helpers/provisioning_templates_helper_branding.rb
Instance Method Summary collapse
Instance Method Details
#link_to_if_authorized(name, options = {}, html_options = {}) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'app/helpers/provisioning_templates_helper_branding.rb', line 2 def (name, = {}, = {}) 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 |