Sha256: 2af9bf6f8a1a19ca8c5233dd1f3d4ec998f8a68316e0e31812d39e7f28a6c1eb

Contents?: true

Size: 637 Bytes

Versions: 14

Compression:

Stored size: 637 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

14 entries across 14 versions & 1 rubygems

Version Path
foreman_salt-14.0.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-13.2.4 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-13.2.3 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-13.2.2 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-13.2.1 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-13.2.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-13.1.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-13.0.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-12.0.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-11.0.1 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-11.0.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-10.3.1 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-10.3.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb
foreman_salt-10.2.0 app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb