mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 04:59:40 +00:00
Merge branch 'sgabler-add-hints-to-repeat-every-x-days-functionality' into develop
This commit is contained in:
commit
ac7ee80c27
3 changed files with 12 additions and 3 deletions
|
|
@ -38,6 +38,9 @@
|
|||
"streakCounter": "Streak Counter",
|
||||
"repeat": "Repeat",
|
||||
"repeatEvery": "Repeat Every",
|
||||
"repeatHelpTitle": "How often should this task be repeated?",
|
||||
"dailyRepeatHelpContent": "This task will be due every X days. You can set that value below.",
|
||||
"weeklyRepeatHelpContent": "This task will be due on the highlighted days below. Click on a day to activate/deactivate it.",
|
||||
"repeatDays": "Every X Days",
|
||||
"repeatWeek": "On Certain Days of the Week",
|
||||
"day": "Day",
|
||||
|
|
@ -51,6 +54,7 @@
|
|||
"complete": "Done",
|
||||
"dated": "Dated",
|
||||
"due": "Due",
|
||||
"notDue": "Not Due",
|
||||
"grey": "Grey",
|
||||
"score": "Score",
|
||||
"rewards": "Rewards",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
legend.option-title=env.t('repeatEvery')
|
||||
legend.option-title
|
||||
span.hint(popover-trigger='mouseenter', popover-title=env.t('repeatHelpTitle'),
|
||||
popover='{{env.t(task.frequency + "RepeatHelpContent")}}')=env.t('repeatEvery')
|
||||
|
||||
// If frequency is daily
|
||||
ng-form.form-group(name='everyX' ng-if='task.frequency=="daily"')
|
||||
|
|
@ -12,8 +14,9 @@ ng-form.form-group(name='everyX' ng-if='task.frequency=="daily"')
|
|||
// note, does not use data-toggle="buttons-checkbox" - it would interfere with our own click binding
|
||||
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}')
|
||||
button(type='button', ng-class='{active: 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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue