Sha256: f0e9b2cc48d1cf175eb52657b261effa399f8f48af6d4a2ff99d7eaf753a1edf

Contents?: true

Size: 612 Bytes

Versions: 4

Compression:

Stored size: 612 Bytes

Contents

module Bootdisk::HostsHelperExt
  extend ActiveSupport::Concern

  included do
    alias_method_chain :host_title_actions, :bootdisk
  end

  def host_title_actions_with_bootdisk(host, vm)
    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(host, vm)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_bootdisk-1.2.3 app/helpers/concerns/bootdisk/hosts_helper_ext.rb
foreman_bootdisk-1.2.2 app/helpers/concerns/bootdisk/hosts_helper_ext.rb
foreman_bootdisk-1.2.1 app/helpers/concerns/bootdisk/hosts_helper_ext.rb
foreman_bootdisk-1.2.0 app/helpers/concerns/bootdisk/hosts_helper_ext.rb