Sha256: 0c7978907285847e1fa77d3df74f4b5a52ffd6943c44357b315549d1983216e1

Contents?: true

Size: 396 Bytes

Versions: 124

Compression:

Stored size: 396 Bytes

Contents

module ForemanRemoteExecution
  module JobTemplatesExtensions
    def permitted_actions(template)
      original = super(template)

      if template.is_a?(JobTemplate)
        original.unshift(display_link_if_authorized(_('Run'), hash_for_new_job_invocation_path(:template_id => template.id).merge(:authorizer => authorizer))) unless template.snippet
      end

      original
    end
  end
end

Version data entries

124 entries across 124 versions & 1 rubygems

Version Path
foreman_remote_execution-8.3.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-9.1.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-8.2.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-8.2.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-9.0.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-9.0.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-8.1.2 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-8.1.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-8.1.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-7.2.2 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-7.2.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-7.2.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-5.0.8 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-8.0.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-7.1.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-7.1.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-7.0.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-5.0.7 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-5.0.6 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-6.2.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb