Add tooltips for day buttons to show "due" or "not due"

This commit is contained in:
Simon Gabler 2015-08-05 22:25:03 +02:00
parent 1997338751
commit 2343e4720c
3 changed files with 4 additions and 1 deletions

View file

@ -54,6 +54,7 @@
"complete": "Done",
"dated": "Dated",
"due": "Due",
"notDue": "Not Due",
"grey": "Grey",
"score": "Score",
"rewards": "Rewards",

View file

@ -68,6 +68,8 @@ hrpg-button-color-mixin($hrpg-button-color, highlight=false)
color: darken($hrpg-button-color, 70%) !important
.glyphicon
color:darken($hrpg-button-color, 60%)
.tooltip
border:0
&.active
a, button
background-color: darken($hrpg-button-color, 3.82%) !important

View file

@ -14,7 +14,7 @@ ng-form.form-group(name='everyX' ng-if='task.frequency=="daily"')
mixin dayOfWeek(day, num)
li
button(type='button', ng-class='{active: task.repeat.#{day}}',
ng-disabled='task.challenge.id', ng-click='task.repeat.#{day} = !task.repeat.#{day}')
ng-disabled='task.challenge.id', ng-click='task.repeat.#{day} = !task.repeat.#{day}', tooltip='{{env.t((task.repeat.#{day}) ? "due" : "notDue")}}')
| {{::moment.weekdaysMin(#{num})}}
+dayOfWeek('su', 0)