Module: ForemanRemoteExecution::HostsHelperExtensions

Extended by:
ActiveSupport::Concern
Defined in:
app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb

Instance Method Summary collapse

Instance Method Details

#host_title_actions_with_run_button(*args) ⇒ Object



14
15
16
17
# File 'app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb', line 14

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

#multiple_actions_with_remote_executionObject



10
11
12
# File 'app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb', line 10

def multiple_actions_with_remote_execution
  multiple_actions_without_remote_execution + [[_('Run Job'), new_job_invocation_path, false]]
end