<%def name="machineRow(machine)">
<tr>
<td rowspan="2">
+ % if machine.uptime and installing[machine]:
+ <img src="static/power_installing.png" alt="Installing..." />
+ % else:
<form action="machine/${machine.machine_id}/command/${'shutdown' if machine.uptime else 'create'}" method="post">
<input type="hidden" name="back" value="list"/>
<input type="hidden" name="machine_id"
% endif
/>
</form>
+ % endif
</td>
<td><a href="machine/${machine.machine_id}">${machine.name}</a></td>
<td>${machine.memory}M</td>
<td>${machine.owner}</td>
<td>${machine.administrator}</td>
% if machine.nics:
- <td>${', '.join(map(lambda x: x.ip, machine.nics))}</td>
+ <td>${', '.join(nic.ip for nic in machine.nics)}</td>
% else:
<td></td>
% endif