Module: ForemanXen::HostHelperExtensions::Overrides

Defined in:
app/models/concerns/foreman_xen/host_helper_extensions.rb

Instance Method Summary collapse

Instance Method Details

#host_title_actions(host) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'app/models/concerns/foreman_xen/host_helper_extensions.rb', line 6

def host_title_actions(host)
  unless @host.compute_resource.nil?
    if @host.compute_resource.type == 'ForemanXen::Xenserver'
      title_actions(
        button_group(
          link_to(
            _('Xen Snapshots'),
            "../foreman_xen/snapshots/#{@host.id}/",
            :title => _('Manage machine snapshots'),
            :id    => :xen_snap_button,
            :class => 'btn btn-default'
          )
        )
      )
    end
  end
  super(host)
end