From: Eric Price Date: Mon, 8 Oct 2007 05:22:35 +0000 (-0400) Subject: Update X-Git-Tag: sipb-xen-www/1~88 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/fbb16ba8e40d6b99bc7501faf4ebd934631900ca Update svn path=/trunk/web/; revision=133 --- diff --git a/templates/info.tmpl b/templates/info.tmpl index f2ebe51..aa81dbe 100644 --- a/templates/info.tmpl +++ b/templates/info.tmpl @@ -2,10 +2,77 @@ #extends skeleton #def title -Created! +Info on $machine.name #end def + #def body

Info

-

Info on ${machine.name}.

+

Info on ${machine.name}:

+ + #for $key, $value in $fields + + #end for +
$key:$value
+ +

Commands:

+
+ + + + + + #if $on + + + + #else + + #end if + + + + + + +
+ #if $on + #if $has_vnc + Console + #else + VNC is not enabled + #end if + #else + + #end if +
Boot CD:
+
+

Change settings: +#if $on +(To edit ram and disk size, turn off the machine first.) +#end if +

+
+ + + + +#if $machine.nics + +#end if +#if not $on + + +#end if + +
Owner:
Contact email:
Hostname:.servers.csail.mit.edu
Ram:MB (max $maxmem)
Disk:GB (max $maxdisk)
+
+ #end def diff --git a/templates/list.tmpl b/templates/list.tmpl index f820385..73e7c0a 100644 --- a/templates/list.tmpl +++ b/templates/list.tmpl @@ -18,7 +18,7 @@ List of your VMs IP MAC Address Hostname - Status + Uptime VNC Restart? #for $machine in $machines: @@ -36,14 +36,26 @@ List of your VMs #end if - Good! - Console +#slurp +#if $uptimes.get($machine.name) +$uptimes[$machine.name]#slurp +#else +Off#slurp +#end if + + #slurp +#if $has_vnc.get($machine.name) +Console#slurp +#else +off#slurp +#end if + -
+ + value="Reboot"/>
@@ -52,19 +64,17 @@ List of your VMs #end if

Create a new VM:

-
+ - + - #set $maxmem=256 - #set $maxdisk=1.5 @@ -76,7 +86,7 @@ List of your VMs - +
Name${user.username}_
Memory megabytes ($maxmem max)
Disk gigabytes ($maxdisk max)
Initial InstallBoot CD