Completed tasks no longer display past dates in red

This commit is contained in:
Nathaniel E Skiba 2014-08-28 11:13:23 -04:00
parent 3a4e9b135f
commit b9321807ca

View file

@ -4,7 +4,7 @@ li(bindonce='list', bo-id='"task-"+task.id', ng-repeat='task in obj[list.type+"s
// Due Date
span(ng-if='task.type=="todo" && task.date')
span(ng-class='{"label label-danger":moment(task.date).isBefore(_today, "days")}') {{moment(task.date).format('MM/DD')}}
span(ng-class='{"label label-danger":(moment(task.date).isBefore(_today, "days") && !task.completed)}') {{moment(task.date).format('MM/DD')}}
// Streak
|  
span(ng-show='task.streak') {{task.streak}}