Sha256: 359f21de505f77c5265bd6510cf9acf23855be3aa0942858129c3ed73e168bd5
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
module ForemanBootdisk::HostsHelperExt extend ActiveSupport::Concern included do alias_method_chain :host_title_actions, :bootdisk end def host_title_actions_with_bootdisk(*args) title_actions( button_group( select_action_button(_('Boot disk'), {}, display_link_if_authorized(_("Host '%s' image") % @host.name.split('.')[0], hash_for_bootdisk_iso_host_path(:id => @host), :class=>'btn'), display_link_if_authorized(_("Generic image"), hash_for_generic_iso_disks_path, :class=>'btn') ) ) ) host_title_actions_without_bootdisk(*args) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_bootdisk-3.0.0 | app/helpers/concerns/foreman_bootdisk/hosts_helper_ext.rb |