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-1.7.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.7.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.6.7 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.6.6 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.6.5 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.6.4 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.5.6 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.6.3 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.6.2 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.5.5 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.6.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.6.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.5.4 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.5.3 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.5.2 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.5.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.5.0 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.4.6 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.4.5 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.4.4 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb