mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 04:38:55 +00:00
Dailies new subheading and summary change (#8799)
* Dailies new subheading and summary change * summary change
This commit is contained in:
parent
c1e5d8b573
commit
48bbc22fb4
3 changed files with 10 additions and 0 deletions
|
|
@ -357,6 +357,9 @@ angular.module('habitrpg')
|
|||
var numberToShortDay = Shared.DAY_MAPPING;
|
||||
|
||||
function generateSummary(task) {
|
||||
if (task._edit.everyX === 0)
|
||||
return window.env.t('repeatZero');
|
||||
|
||||
var frequencyPlural = frequencyMap[task._edit.frequency];
|
||||
|
||||
var repeatDays = '';
|
||||
|
|
|
|||
|
|
@ -147,6 +147,10 @@
|
|||
"taskApprovalHasBeenRequested": "Approval has been requested",
|
||||
"approvals": "Approvals",
|
||||
"approvalRequired": "Approval Required",
|
||||
"repeatZero": "Daily is never due",
|
||||
"repeatType": "Repeat Type",
|
||||
"repeatTypeHelpTitle": "What kind of repeat is this?",
|
||||
"repeatTypeHelp": "Select \"Daily\" if you want this task to repeat every day or every third day, etc. Select \"Weekly\"if you want it to repeat on certain days of the week. If you select \"Monthly\" or \"Yearly\", adjust the Start Date to control which day of the month or year the task will be due on.",
|
||||
"weekly": "Weekly",
|
||||
"monthly": "Monthly",
|
||||
"yearly": "Yearly",
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ fieldset.option-group.advanced-option(ng-show="task.type === 'daily'")
|
|||
|
||||
br
|
||||
|
||||
legend.option-title
|
||||
span.hint(popover-title=env.t('repeatTypeHelpTitle'), popover=env.t("repeatTypeHelp"), popover-trigger='mouseenter')
|
||||
=env.t('repeatType')
|
||||
select.form-control(ng-model='task._edit.frequency', ng-disabled='!canEdit(task)')
|
||||
option(value='daily')=env.t('daily')
|
||||
option(value='weekly')=env.t('weekly')
|
||||
|
|
|
|||
Loading…
Reference in a new issue