Sha256: 8303ce916f2efa5bd868ec3fb369fa59a88b88410beb5aaf65dc265f639042a0

Contents?: true

Size: 619 Bytes

Versions: 12

Compression:

Stored size: 619 Bytes

Contents

module ForemanSalt
  module SmartProxiesHelperExtensions
    extend ActiveSupport::Concern

    module Overrides
      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
    end

    included do
      prepend Overrides
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman_salt-17.0.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-16.0.3 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-16.0.2 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-16.0.1 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-16.0.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-15.2.3 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-15.2.2 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-15.2.1 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-15.2.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-15.1.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-15.0.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-14.1.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb