Grey out done tasks

This commit is contained in:
Tyler Renelle 2012-02-06 14:37:26 -05:00
parent 8704815d81
commit e5f8853a43
2 changed files with 2 additions and 0 deletions

View file

@ -9,6 +9,7 @@
.color-green { background-color: rgb(217, 234, 211); }
.color-light-blue { background-color: rgb(208, 224, 227); }
.color-blue { background-color: rgb(201, 218, 248); }
.done { background-color: rgb(217, 217, 217); color: rgb(153, 153, 153); }
.panel {
vertical-align:top;

View file

@ -10,6 +10,7 @@ module HabitsHelper
def score_color(habit)
s = habit.score
return 'done' if habit.done?
case
when s<-8 then return 'color-red'
when s>=-8 && s<-5 then return 'color-pink'