Module: ForemanCockpit::HostsHelperExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/helpers/concerns/foreman_cockpit/hosts_helper_extensions.rb
Overview
Helper to override the host action bar and add a Cockpit button. Deface does not allow you to do this as the action bar is loaded through hosts_helper, not included in the show.html.erb
Instance Method Summary collapse
Instance Method Details
#host_title_actions_with_cockpit(*args) ⇒ Object
12 13 14 15 |
# File 'app/helpers/concerns/foreman_cockpit/hosts_helper_extensions.rb', line 12 def host_title_actions_with_cockpit(*args) if @host.cockpit_enabled? host_title_actions_without_cockpit(*args) end |