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.4.3 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.4.2 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.4.1 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
foreman_remote_execution-1.3.4 app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb