+#end if
+#end def
+
+#def machineRow($machine)
+ <tr>
+ <td><a href="info?machine_id=$machine.machine_id">$machine.name</a></td>
+ <td>${machine.memory}M</td>
+ <td>$machine.owner</td>
+#if $machine.nics
+#set $nic = $machine.nics[0]
+ <td>$nic.ip</td>
+#else
+ <td></td>
+#end if
+<td>#slurp
+#if $machine.uptime
+$machine.uptime#slurp
+#else
+Off#slurp
+#end if
+</td>
+ <td>#slurp
+#if $has_vnc[$machine] == True
+<a href="vnc?machine_id=$machine.machine_id">Console</a>#slurp
+#else
+$has_vnc[$machine]
+#end if
+</td>
+ <td>
+ <form action="command" method="post">
+ <input type="hidden" name="back" value="list"/>
+ <input type="hidden" name="machine_id"
+ value="$machine.machine_id"/>
+<input type="submit" class="button" name="action" value="#slurp
+#if $machine.uptime then 'Power off' else 'Power on'
+"/>
+ </form>
+ </td>
+ </tr>
+#end def