Changeset 644


Ignore:
Timestamp:
Jun 23, 2008, 4:21:21 AM (17 years ago)
Author:
andersk
Message:

Power button tweaks from the hackathon.

Location:
trunk/packages/sipb-xen-www/code
Files:
5 deleted
4 edited

Legend:

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

    r639 r644  
    7676
    7777/* Machine list power buttons */
    78 .power.on:hover {
    79   background: url(/static/power_button_on_to_off_bg.png);
     78.power {
     79  width: 32px;
     80  height: 32px;
     81  background-color: transparent;
     82  background-position: 0 0;
     83  margin: 0;
     84  border: 0;
     85  text-indent: 64px;
     86  line-height: 128px;
     87  cursor: pointer;
    8088}
    81 .power.off:hover {
    82   background: url(/static/power_button_off_to_on_bg.png);
     89.power:hover {
     90  background-position: 0 32px;
     91}
     92.power.on {
     93  background-image: url(power_button_on.png);
     94}
     95.power.off {
     96  background-image: url(power_button_off.png);
    8397}
    8498
    8599/* Striping applied (by JavaScript) to every other row in /list. */
    86100tr.stripedrow {
    87   background-color: #DDF;
     101  background-color: #e8e8ff;
    88102}
    89103
    90 #machinelist tr > td:first-child {
    91   padding-right: 1em;
     104#machinelist td, #machinelist th {
     105  padding: 0.1em 0.5em;
    92106}
  • trunk/packages/sipb-xen-www/code/templates/list.tmpl

    r639 r644  
    114114            <input type="hidden" name="machine_id"
    115115                   value="$machine.machine_id"/>
    116 <input type="image" class="power #slurp
     116<input type="submit" class="power #slurp
    117117#if $machine.uptime then 'on' else 'off'
    118118" name="action" value="#slurp
    119119#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'
    122120"/>
    123121          </form>
Note: See TracChangeset for help on using the changeset viewer.