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-12.0.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-11.1.3 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-10.1.2 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-12.0.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-10.1.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-11.1.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-11.1.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-10.1.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-8.3.3 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-8.3.2 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-11.0.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-10.0.7 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-8.3.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-10.0.6 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-10.0.5 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-10.0.4 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-10.0.3 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-10.0.2 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-10.0.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-10.0.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb