Module: ForemanProxmox::ProxmoxserversHelper
- Defined in:
- app/helpers/foreman_proxmox/proxmoxservers_helper.rb
Instance Method Summary collapse
Instance Method Details
#show_appropriate_connection_button(proxmox) ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/helpers/foreman_proxmox/proxmoxservers_helper.rb', line 4 def (proxmox) if proxmox == nil then link_to(_("New"), new_proxmoxserver_path, :class => 'btn') else link_to(_("Edit"), edit_proxmoxserver_path, :class => 'btn') end end |
#show_node_controlls(proxmox) ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/helpers/foreman_proxmox/proxmoxservers_helper.rb', line 14 def show_node_controlls(proxmox) [ link_to(_("Start all VMs"), startall_path, :class => 'btn'), link_to(_("Stop all VMs"), stopall_path, :class => 'btn'), link_to(_("Reboot"), reboot_path, :class => 'btn'), link_to(_("Shutdown"), shutdown_path, :class => 'btn') ].compact end |