Sha256: 4de45e491c993e3829979cac619a526ff76d63f5da5eb7e41bc2f40ea86ea19c

Contents?: true

Size: 615 Bytes

Versions: 16

Compression:

Stored size: 615 Bytes

Contents

# frozen_string_literal: true

module ForemanLeapp
  module RemoteExecutionHelperExtension
    def job_invocation_task_buttons(task)
      return super unless ::Helpers::JobHelper.correct_feature?(@job_invocation, 'leapp_remediation_plan')

      super.insert(2, link_to(_('Rerun preupgrade check'),
                              new_job_invocation_path(host_ids: @resource_base.map(&:id), feature: 'leapp_preupgrade'),
                              class: 'btn btn-default',
                              title: _('Run Leapp Preupgrade check again'),
                              method: :get))
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
foreman_leapp-0.1.10 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.1.9 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.1.8 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.1.7 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.1.6 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.1.5 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.1.4 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.1.3 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.1.2 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.1.1 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.1.0 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.0.6 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.0.5 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.0.4 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.0.3 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
foreman_leapp-0.0.2 app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb