show warning that completed to-dos are cleared after 3 days

This commit is contained in:
Tyler Renelle 2014-01-14 17:29:05 -07:00
parent 506d22e935
commit 128d68f544

View file

@ -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}')