Changeset 618 for trunk/packages/sipb-xen-www/code/templates
- Timestamp:
- Jun 21, 2008, 6:43:15 PM (17 years ago)
- Location:
- trunk/packages/sipb-xen-www/code/templates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/templates/list.tmpl
r609 r618 119 119 #def machineRow($machine) 120 120 <tr> 121 <td><a href="info?machine_id=$machine.machine_id">$machine.name</a></td>122 <td>${machine.memory}M</td>123 <td>$machine.owner</td>124 <td>$machine.administrator</td>125 #if $machine.nics126 #set $nic = $machine.nics[0]127 <td>$nic.ip</td>128 #else129 <td></td>130 #end if131 <td>#slurp132 #if $machine.uptime133 ${datetime.timedelta(seconds=int(machine.uptime))}#slurp134 #end if135 </td>136 <td>#slurp137 #if $has_vnc[$machine] == True138 <a href="vnc?machine_id=$machine.machine_id">Console</a>#slurp139 #else if $has_vnc[$machine] != 'Off'140 #filter None141 $has_vnc[$machine]142 #end filter143 #end if144 </td>145 121 <td rowspan="2"> 146 122 <form action="command" method="post"> … … 153 129 </form> 154 130 </td> 131 <td><a href="info?machine_id=$machine.machine_id">$machine.name</a></td> 132 <td>${machine.memory}M</td> 133 <td>$machine.owner</td> 134 <td>$machine.administrator</td> 135 #if $machine.nics 136 #set $nic = $machine.nics[0] 137 <td>$nic.ip</td> 138 #else 139 <td></td> 140 #end if 141 <td>#slurp 142 #if $machine.uptime 143 ${datetime.timedelta(seconds=int(machine.uptime))}#slurp 144 #end if 145 </td> 146 <td>#slurp 147 #if $has_vnc[$machine] == True 148 <a href="vnc?machine_id=$machine.machine_id">Console</a>#slurp 149 #else if $has_vnc[$machine] != 'Off' 150 #filter None 151 $has_vnc[$machine] 152 #end filter 153 #end if 154 </td> 155 155 </tr> 156 156 <tr> … … 160 160 161 161 #def machineList($machines) 162 <table >162 <table cellspacing="0" cellpadding="2"> 163 163 <tr> 164 <th></th> 164 165 <th>Name</th> 165 166 <th>Memory</th> … … 177 178 <th>Uptime</th> 178 179 <th>VNC</th> 179 <th></th>180 180 </tr> 181 181 #for $machine in $machines: … … 185 185 #end for 186 186 </table> 187 <script type="text/javascript" src="/static/stripe.js"></script> 188 <script type="text/javascript"> 189 document.observe("dom:loaded", function() { 190 stripe(\$('machinelist').getElementsByTagName('table')[0], 191 'stripedrow'); 192 }); 193 </script> 187 194 #end def 188 195 -
trunk/packages/sipb-xen-www/code/templates/skeleton.tmpl
r543 r618 57 57 <li><a href="vnc?machine_id=$machine.machine_id">Console</a></li> 58 58 #end if 59 <li><a href="help">Help</a></ ul></li>59 <li><a href="help">Help</a></li> 60 60 </ul> 61 61 #end if
Note: See TracChangeset
for help on using the changeset viewer.