From 128d68f54431632ac4bd9780813219792eb4b3d6 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Tue, 14 Jan 2014 17:29:05 -0700 Subject: [PATCH] show warning that completed to-dos are cleared after 3 days --- views/shared/tasks/lists.jade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/views/shared/tasks/lists.jade b/views/shared/tasks/lists.jade index eb3edc831e..7887d79f22 100644 --- a/views/shared/tasks/lists.jade +++ b/views/shared/tasks/lists.jade @@ -36,9 +36,6 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template") input(type='text', ng-model='list.newTask', placeholder='{{list.placeHolder}}', required) input.addtask-btn(type='submit', value='+', ng-disabled='new{{list.type}}form.$invalid') hr - .alert.alert-warning(ng-if='list.type=="todo" && obj[list.type+"s"].length > 100') - =env.t('clearCompleted') - i.icon-question-sign(popover=env.t('lotOfToDos'), popover-trigger='mouseenter', popover-placement='left') // Actual List ul(class='{{list.type}}s main-list', ng-show='obj[list.type + "s"].length > 0', habitrpg-sortable) @@ -114,7 +111,10 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template") // Todo Tabs div(bo-if='main && list.type=="todo"', bo-class='{"tabbable tabs-below": list.type=="todo"}') - button.task-action-btn.tile.spacious.bright(ng-show='list.showCompleted', ng-click='user.ops.clearCompleted({})')=env.t('clearCompleted') + div(ng-show='list.showCompleted') + .alert + =env.t('lotOfToDos') + button.task-action-btn.tile.spacious.bright(ng-click='user.ops.clearCompleted({})')=env.t('clearCompleted') // remaining/completed tabs ul.nav.nav-tabs li(ng-class='{active: !list.showCompleted}')