Module: ForemanSalt::SmartProxiesHelperExtensions::Overrides

Defined in:
app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb

Instance Method Summary collapse

Instance Method Details

#feature_actions(proxy, authorizer) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb', line 6

def feature_actions(proxy, authorizer)
  actions = super

  if proxy.has_feature?('Salt')
    actions << display_link_if_authorized(_('Salt Keys'), controller: 'foreman_salt/salt_keys', action: 'index', smart_proxy_id: proxy)
    actions << display_link_if_authorized(_('Salt Autosign'), controller: 'foreman_salt/salt_autosign', action: 'index', smart_proxy_id: proxy)
  end

  actions
end