Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (36 sloc) 1.1 KB
.container-fluid
.row-fluid
.span6
%table.table.table-striped
%thead
%tr
%th= t(:'vms.table.heading.name')
%th= t(:'vms.table.heading.state')
%th= t(:'vms.table.heading.vnc')
- @vms.each do |vm|
%tr
%td
= vm.name
%td
= vm.state
%td
- if vm.running?
%a{href: vm.vnc_address_with_port}= vm.vnc_address_with_port
%td
- if vm.running?
%a.btn.btn-mini{href: "/vms/#{vm.uuid}/shutdown"}
%i.icon-stop
= t(:'vms.table.button.shutdown')
%a.btn.btn-mini{href: "/vms/#{vm.uuid}/stop"}
%i.icon-stop
= t(:'vms.table.button.stop')
- else
%a.btn.btn-mini{href: "/vms/#{vm.uuid}/start"}
%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.