Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0e078c5547
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (32 sloc) 0.96 kB
- vm_host_ip = VMHost.private_ip
.container-fluid
.row-fluid
.span6
%table.table.table-striped
%thead
%tr
%th= t(:'vms.table.heading.name')
%th= t(:'vms.table.heading.vnc_port')
%th= t(:'vms.table.heading.state')
- @vms.each do |vm|
%tr
%td= vm.name
%td
- vnc_ip_and_port = sprintf("%s:%s", vm_host_ip, vm.vnc_port)
%a{ href: "vnc://#{vnc_ip_and_port}" }= vnc_ip_and_port
%td= vm.state
%td
- if vm.running?
%a.btn.btn-mini
%i.icon-stop
= t(:'vms.table.button.stop')
- else
%a.btn.btn-mini
%i.icon-play
= t(:'vms.table.button.start')
.span6
= haml :'vms/form'
- if @vm
= haml :'vms/show', vm: vm
- else
= haml :'vms/select_one'
Jump to Line
Something went wrong with that request. Please try again.