# HG changeset patch # User Matt Johnston # Date 1391690143 -28800 # Node ID 4a51e2bf689b6d2da3f05ae3263dea85e9ed35b6 # Parent 93af94e6bd9d46230cb2def7533ebf33875be93b a few fixes diff -r 93af94e6bd9d -r 4a51e2bf689b web/log.py --- a/web/log.py Tue Feb 04 23:39:06 2014 +0800 +++ b/web/log.py Thu Feb 06 20:35:43 2014 +0800 @@ -269,17 +269,17 @@ for k, v in _FIELD_DEFAULTS.iteritems(): n = {'name': k, 'value': v} if type(v) is bool: - if v: - n['value'] = "true" kind = 'yesno' else: kind = 'number' - n['amount'] = 0.1; if k == 'overshoot_delay': n['unit'] = ' sec' n['amount'] = 60 + n['digits'] = 0; else: n['unit'] = 'ยบ' + n['amount'] = 0.1; + n['digits'] = 1; n['kind'] = kind n['title'] = k r.append(n) diff -r 93af94e6bd9d -r 4a51e2bf689b web/views/set.tpl --- a/web/views/set.tpl Tue Feb 04 23:39:06 2014 +0800 +++ b/web/views/set.tpl Thu Feb 06 20:35:43 2014 +0800 @@ -50,6 +50,11 @@ background-color: #cdf; } +.modified { + color: #d00; + font-weight: bold; +} + .existing { margin-top: 1em; font-size: 70%; @@ -73,7 +78,7 @@