Sha256: 3875da04743bc1793a1d97336a38a699f87472368bbfd862f0e80547f041eeac
Contents?: true
Size: 677 Bytes
Versions: 6
Compression:
Stored size: 677 Bytes
Contents
module ForemanRemoteExecution module HostsHelperExtensions extend ActiveSupport::Concern included do alias_method_chain(:host_title_actions, :run_button) alias_method_chain :multiple_actions, :remote_execution end def multiple_actions_with_remote_execution multiple_actions_without_remote_execution + [[_('Run Job'), new_job_invocation_path, false]] end def host_title_actions_with_run_button(*args) title_actions(button_group(link_to(_('Run Job'), new_job_invocation_path(:host_ids => [args.first.id]), :id => :run_button, :class => 'btn btn-default'))) host_title_actions_without_run_button(*args) end end end
Version data entries
6 entries across 6 versions & 1 rubygems