Changeset 639 for trunk/packages


Ignore:
Timestamp:
Jun 22, 2008, 2:37:06 AM (17 years ago)
Author:
quentin
Message:

Show power buttons as icons

Location:
trunk/packages/sipb-xen-www/code
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/static/style.css

    r621 r639  
    7575}
    7676
     77/* Machine list power buttons */
     78.power.on:hover {
     79  background: url(/static/power_button_on_to_off_bg.png);
     80}
     81.power.off:hover {
     82  background: url(/static/power_button_off_to_on_bg.png);
     83}
     84
    7785/* Striping applied (by JavaScript) to every other row in /list. */
    7886tr.stripedrow {
  • trunk/packages/sipb-xen-www/code/templates/list.tmpl

    r629 r639  
    114114            <input type="hidden" name="machine_id"
    115115                   value="$machine.machine_id"/>
    116 <input type="submit" class="button" name="action" value="#slurp
     116<input type="image" class="power #slurp
     117#if $machine.uptime then 'on' else 'off'
     118" name="action" value="#slurp
    117119#if $machine.uptime then 'Power off' else 'Power on'
     120" src="#slurp
     121#if $machine.uptime then 'static/power_button_on.png' else 'static/power_button_off.png'
    118122"/>
    119123          </form>
Note: See TracChangeset for help on using the changeset viewer.