Sha256: 5aa9f19eb1b970e35631c32c23f075308c8d83825212f09683c9343e2544678a

Contents?: true

Size: 610 Bytes

Versions: 5

Compression:

Stored size: 610 Bytes

Contents

module Bootdisk::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

5 entries across 5 versions & 1 rubygems

Version Path
foreman_bootdisk-2.0.8 app/helpers/concerns/bootdisk/hosts_helper_ext.rb
foreman_bootdisk-2.0.7 app/helpers/concerns/bootdisk/hosts_helper_ext.rb
foreman_bootdisk-2.0.6 app/helpers/concerns/bootdisk/hosts_helper_ext.rb
foreman_bootdisk-2.0.5 app/helpers/concerns/bootdisk/hosts_helper_ext.rb
foreman_bootdisk-2.0.4 app/helpers/concerns/bootdisk/hosts_helper_ext.rb