mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-18 01:42:20 +00:00
show warning that completed to-dos are cleared after 3 days
This commit is contained in:
parent
506d22e935
commit
128d68f544
1 changed files with 4 additions and 4 deletions
|
|
@ -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}')
|
||||
|
|
|
|||
Loading…
Reference in a new issue