add Dated tab for To-Dos

This commit is contained in:
Alice Harris 2014-11-01 20:34:36 +10:00
parent 9ea0db88c1
commit 3451315ef6
2 changed files with 4 additions and 0 deletions

View file

@ -212,6 +212,8 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
return !task.completed && shouldDo;
case "complete": // Dailies and To-Dos
return task.completed || !shouldDo;
case "dated": // To-Dos
return !task.completed && task.date;
case "ingamerewards": // All skills/rewards except the user's own
return false; // Because "rewards" list includes only the user's own
case "all":

View file

@ -60,6 +60,8 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template")
ul.nav.nav-tabs
li(ng-class='{active: list.view == "remaining"}')
a(ng-click='list.view = "remaining"')=env.t('remaining')
li(ng-class='{active: list.view == "dated"}')
a(ng-click='list.view = "dated"')=env.t('dated')
li(ng-class='{active: list.view == "complete"}')
a(ng-click='list.view = "complete"')=env.t('complete')
// Rewards Tabs