Ignore:
Timestamp:
Jun 21, 2008, 6:43:15 PM (17 years ago)
Author:
geofft
Message:

Apply a background color to every other VM, and move the power button to the left,
closer to the VM name.

Upgraded prototype.js to 1.6.

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  
    119119#def machineRow($machine)
    120120      <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.nics
    126 #set $nic = $machine.nics[0]
    127         <td>$nic.ip</td>
    128 #else
    129         <td></td>
    130 #end if
    131 <td>#slurp
    132 #if $machine.uptime
    133 ${datetime.timedelta(seconds=int(machine.uptime))}#slurp
    134 #end if
    135 </td>
    136         <td>#slurp
    137 #if $has_vnc[$machine] == True
    138 <a href="vnc?machine_id=$machine.machine_id">Console</a>#slurp
    139 #else if $has_vnc[$machine] != 'Off'
    140 #filter None
    141 $has_vnc[$machine]
    142 #end filter
    143 #end if
    144 </td>
    145121        <td rowspan="2">
    146122          <form action="command" method="post">
     
    153129          </form>
    154130        </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>
    155155      </tr>
    156156      <tr>
     
    160160
    161161#def machineList($machines)
    162     <table>
     162    <table cellspacing="0" cellpadding="2">
    163163      <tr>
     164        <th></th>
    164165        <th>Name</th>
    165166        <th>Memory</th>
     
    177178        <th>Uptime</th>
    178179        <th>VNC</th>
    179         <th></th>
    180180      </tr>
    181181      #for $machine in $machines:
     
    185185      #end for
    186186    </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>
    187194#end def
    188195
  • trunk/packages/sipb-xen-www/code/templates/skeleton.tmpl

    r543 r618  
    5757<li><a href="vnc?machine_id=$machine.machine_id">Console</a></li>
    5858#end if
    59 <li><a href="help">Help</a></ul></li>
     59<li><a href="help">Help</a></li>
    6060</ul>
    6161#end if
Note: See TracChangeset for help on using the changeset viewer.