Sha256: da2916433e22f1bc1d67b516fe5cc836c84a2ab77a1e0b55b32e352169ff097c

Contents?: true

Size: 552 Bytes

Versions: 7

Compression:

Stored size: 552 Bytes

Contents

module ForemanPuppet
  module EnvironmentsHelper
    include PuppetclassesAndEnvironmentsHelper

    def url_for(*args)
      super
    rescue ActionController::UrlGenerationError => _e
      foreman_puppet.url_for(*args)
    end

    def environments_title_actions
      title_actions import_proxy_select(hash_for_import_environments_environments_path.merge(engine: foreman_puppet)),
        button_group(new_link(_('Create Puppet Environment'), { engine: foreman_puppet }, id: 'new_environment')),
        button_group(help_button)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_puppet-2.0.4 app/helpers/foreman_puppet/environments_helper.rb
foreman_puppet-3.0.3 app/helpers/foreman_puppet/environments_helper.rb
foreman_puppet-3.0.2 app/helpers/foreman_puppet/environments_helper.rb
foreman_puppet-2.0.3 app/helpers/foreman_puppet/environments_helper.rb
foreman_puppet-3.0.1 app/helpers/foreman_puppet/environments_helper.rb
foreman_puppet-2.0.2 app/helpers/foreman_puppet/environments_helper.rb
foreman_puppet-2.0.0 app/helpers/foreman_puppet/environments_helper.rb