web: info: move console message out of commands form table
[invirt/packages/invirt-web.git] / code / templates / info.tmpl
index d115955..b090906 100644 (file)
@@ -15,26 +15,21 @@ Info on $machine.name
 #end def
 
 #def commands()
+#if $on
+ #if not $machine.type.hvm
+  Console access: type
+  <tt>ssh $machine.name@$config.console.hostname</tt>
+  on Athena. <a href="https://xvm.scripts.mit.edu/wiki/SerialConsole">(more info)</a>
+ #elif $has_vnc
+  <strong><a href="vnc?machine_id=$machine.machine_id">Get Console</a></strong>
+ #else
+  VNC console not enabled; still booting?
+ #end if
+#end if
 <form action="command" method="POST">
   <input type="hidden" name="back" value="info"/>
   <input type="hidden" name="machine_id" value="$machine.machine_id"/>
   <table>
-    
-    <tr><td colspan=100>
-       #if $on
-        #if not $machine.type.hvm
-        Console access: type
-        <tt>ssh $machine.name@$config.console.hostname</tt>
-        on Athena. <a href="https://xvm.scripts.mit.edu/wiki/SerialConsole">(more info)</a>
-       #elif $has_vnc
-       <strong><a href="vnc?machine_id=$machine.machine_id">Get Console</a></strong>
-       #else
-       VNC console not enabled; still booting?
-       #end if
-       #else
-
-       #end if
-    </td></tr>
       <tr>
        #if $on
        <td><button type="submit" class="button" name="action" value="Power off">Power off (hard)</button></td>