}
/* Machine list power buttons */
-.power.on:hover {
- background: url(/static/power_button_on_to_off_bg.png);
-}
-.power.off:hover {
- background: url(/static/power_button_off_to_on_bg.png);
+.power {
+ width: 32px;
+ height: 32px;
+ background-color: transparent;
+ background-position: 0 0;
+ margin: 0;
+ border: 0;
+ text-indent: 64px;
+ line-height: 128px;
+ cursor: pointer;
+}
+.power:hover {
+ background-position: 0 32px;
+}
+.power.on {
+ background-image: url(power_button_on.png);
+}
+.power.off {
+ background-image: url(power_button_off.png);
}
/* Striping applied (by JavaScript) to every other row in /list. */
tr.stripedrow {
- background-color: #DDF;
+ background-color: #e8e8ff;
}
-#machinelist tr > td:first-child {
- padding-right: 1em;
+#machinelist td, #machinelist th {
+ padding: 0.1em 0.5em;
}
<input type="hidden" name="back" value="list"/>
<input type="hidden" name="machine_id"
value="$machine.machine_id"/>
-<input type="image" class="power #slurp
+<input type="submit" class="power #slurp
#if $machine.uptime then 'on' else 'off'
" name="action" value="#slurp
#if $machine.uptime then 'Power off' else 'Power on'
-" src="#slurp
-#if $machine.uptime then 'static/power_button_on.png' else 'static/power_button_off.png'
"/>
</form>
</td>