- {{#each flashMessages.queue as |flash|}} + {{#each this.flashMessages.queue as |flash|}} {{t flash.message}} diff --git a/app/templates/components/create-options-dates.hbs b/app/templates/components/create-options-dates.hbs index dd10422..4aab1bf 100644 --- a/app/templates/components/create-options-dates.hbs +++ b/app/templates/components/create-options-dates.hbs @@ -17,17 +17,17 @@
diff --git a/app/templates/components/create-options-datetime.hbs b/app/templates/components/create-options-datetime.hbs index 3b449d6..810e8a0 100644 --- a/app/templates/components/create-options-datetime.hbs +++ b/app/templates/components/create-options-datetime.hbs @@ -1,7 +1,7 @@
- {{#if errorMessage}} + {{#if this.errorMessage}} - {{t errorMessage}} + {{t this.errorMessage}} {{/if}} @@ -14,14 +14,14 @@ as |form| >
- {{#each dates as |date index|}} + {{#each @dates as |date index|}} {{! show summarized validation state for all times in a day }}
{{t "create.options.button.delete.label"}} @@ -99,7 +99,7 @@ {{/each}}
- {{#if (gt groupedDates.length 1)}} + {{#if (gt this.groupedDates.length 1)}} {{t "create.options.button.delete.label"}} diff --git a/app/templates/components/create-options.hbs b/app/templates/components/create-options.hbs index 00a7e37..494e461 100644 --- a/app/templates/components/create-options.hbs +++ b/app/templates/components/create-options.hbs @@ -7,10 +7,10 @@ novalidate as |form| > - {{#if isMakeAPoll}} - + {{#if this.isMakeAPoll}} + {{else}} - + {{/if}}
diff --git a/app/templates/components/language-select.hbs b/app/templates/components/language-select.hbs index 07433bb..855dae7 100644 --- a/app/templates/components/language-select.hbs +++ b/app/templates/components/language-select.hbs @@ -1,4 +1,4 @@ -{{#each locales as |locale|}} +{{#each this.locales as |locale|}} diff --git a/app/templates/components/poll-evaluation-chart.hbs b/app/templates/components/poll-evaluation-chart.hbs index 5e141db..e4ca9c2 100644 --- a/app/templates/components/poll-evaluation-chart.hbs +++ b/app/templates/components/poll-evaluation-chart.hbs @@ -1 +1 @@ - + diff --git a/app/templates/components/poll-evaluation-participants-table.hbs b/app/templates/components/poll-evaluation-participants-table.hbs index 5430420..b6771e9 100644 --- a/app/templates/components/poll-evaluation-participants-table.hbs +++ b/app/templates/components/poll-evaluation-participants-table.hbs @@ -11,7 +11,7 @@ {{#each this.optionsGroupedByDays as |optionGroup|}} - {{moment-format optionGroup.value this.momentLongDayFormat}} + {{moment-format optionGroup.value @momentLongDayFormat}} {{/each}} @@ -28,7 +28,7 @@ {{moment-format option.date "LT"}} {{/if}} {{else if this.isFindADate}} - {{moment-format option.date this.momentLongDayFormat}} + {{moment-format option.date @momentLongDayFormat}} {{else}} {{option.title}} {{/if}} diff --git a/app/templates/components/poll-evaluation-summary-option.hbs b/app/templates/components/poll-evaluation-summary-option.hbs index a03dd1c..9a3f822 100644 --- a/app/templates/components/poll-evaluation-summary-option.hbs +++ b/app/templates/components/poll-evaluation-summary-option.hbs @@ -2,59 +2,59 @@ There must not be a line break between option text and "." cause otherwise we will see a space between option string and following dot. --}} -{{#if isFindADate}} +{{#if @isFindADate}} {{! Need to disable block indentation rule cause there shouldn't be a space between date and dot }} {{! template-lint-disable block-indentation }} {{moment-format - evaluationBestOption.option.title - (if evaluationBestOption.option.hasTime "LLLL" momentLongDayFormat) - locale=currentLocale - timeZone=timezone + @evaluationBestOption.option.title + (if @evaluationBestOption.option.hasTime "LLLL" @momentLongDayFormat) + locale=@currentLocale + timeZone=@timezone }}. {{! template-lint-enable block-indentation }} {{else}} - {{evaluationBestOption.option.title}}. + {{@evaluationBestOption.option.title}}. {{/if}}
-{{#if isFindADate}} - {{#if evaluationBestOption.answers.yes}} +{{#if @isFindADate}} + {{#if @evaluationBestOption.answers.yes}} {{t "poll.evaluation.bestOptionParticipants.findADate.yes" - count=evaluationBestOption.answers.yes + count=@evaluationBestOption.answers.yes }} {{/if}} - {{#if evaluationBestOption.answers.maybe}} + {{#if @evaluationBestOption.answers.maybe}} {{t "poll.evaluation.bestOptionParticipants.findADate.maybe" - count=evaluationBestOption.answers.maybe + count=@evaluationBestOption.answers.maybe }} {{/if}} - {{#if evaluationBestOption.answers.no}} + {{#if @evaluationBestOption.answers.no}} {{t "poll.evaluation.bestOptionParticipants.findADate.no" - count=evaluationBestOption.answers.no + count=@evaluationBestOption.answers.no }} {{/if}} {{else}} - {{#if evaluationBestOption.answers.yes}} + {{#if @evaluationBestOption.answers.yes}} {{t "poll.evaluation.bestOptionParticipants.makeAPoll.yes" - count=evaluationBestOption.answers.yes + count=@evaluationBestOption.answers.yes }} {{/if}} - {{#if evaluationBestOption.answers.maybe}} + {{#if @evaluationBestOption.answers.maybe}} {{t "poll.evaluation.bestOptionParticipants.makeAPoll.maybe" - count=evaluationBestOption.answers.maybe + count=@evaluationBestOption.answers.maybe }} {{/if}} - {{#if evaluationBestOption.answers.no}} + {{#if @evaluationBestOption.answers.no}} {{t "poll.evaluation.bestOptionParticipants.makeAPoll.no" - count=evaluationBestOption.answers.no + count=@evaluationBestOption.answers.no }} {{/if}} -{{/if}} +{{/if}} \ No newline at end of file diff --git a/app/templates/components/poll-evaluation-summary.hbs b/app/templates/components/poll-evaluation-summary.hbs index 5567ea6..9ef5474 100644 --- a/app/templates/components/poll-evaluation-summary.hbs +++ b/app/templates/components/poll-evaluation-summary.hbs @@ -3,43 +3,43 @@

- {{t "poll.evaluation.participants" count=participantsCount}} + {{t "poll.evaluation.participants" count=this.participantsCount}}

- {{#if poll.isFindADate}} + {{#if @poll.isFindADate}} {{t "poll.evaluation.bestOption.label.findADate" - count=bestOptions.length + count=this.bestOptions.length }} {{else}} {{t "poll.evaluation.bestOption.label.makeAPoll" - count=bestOptions.length + count=this.bestOptions.length }} {{/if}} - {{#if multipleBestOptions}} + {{#if this.multipleBestOptions}}

    - {{#each bestOptions as |evaluationBestOption|}} - + {{#each this.bestOptions as |evaluationBestOption|}} +
  • + +
  • {{/each}}
{{else}} {{/if}}

@@ -47,6 +47,6 @@

{{t "poll.evaluation.lastParticipation" - ago=(moment-from-now lastParticipationAt locale=currentLocale timezone=timezone) + ago=(moment-from-now this.lastParticipationAt locale=this.currentLocale timezone=@timezone) }}

diff --git a/app/templates/create.hbs b/app/templates/create.hbs index 0bb44ee..cd9066a 100644 --- a/app/templates/create.hbs +++ b/app/templates/create.hbs @@ -1,11 +1,11 @@ {{title (t "create.title")}} - {{#each formSteps as |formStep|}} + {{#each this.formSteps as |formStep|}} {{#unless formStep.hidden}} @@ -15,14 +15,14 @@ {{/each}} {{t "create.formStep.type"}} @@ -30,7 +30,7 @@ @@ -43,7 +43,7 @@ {{#if this.isFindADate}} @@ -52,7 +52,7 @@ {{/if}} diff --git a/app/templates/create/options-datetime.hbs b/app/templates/create/options-datetime.hbs index 945bba4..242332c 100644 --- a/app/templates/create/options-datetime.hbs +++ b/app/templates/create/options-datetime.hbs @@ -1,5 +1,5 @@ diff --git a/app/templates/create/options.hbs b/app/templates/create/options.hbs index 84c3db5..92f8e7d 100644 --- a/app/templates/create/options.hbs +++ b/app/templates/create/options.hbs @@ -1,7 +1,7 @@ diff --git a/app/templates/create/settings.hbs b/app/templates/create/settings.hbs index 4b558ba..9787cd7 100644 --- a/app/templates/create/settings.hbs +++ b/app/templates/create/settings.hbs @@ -21,7 +21,7 @@ id={{el.id}} class="custom-select" > - {{#each answerTypes as |answerType|}} + {{#each this.answerTypes as |answerType|}} @@ -42,7 +42,7 @@ onchange={{action (mut el.value) value="target.value"}} class="custom-select" > - {{#each expirationDurations as |duration|}} + {{#each this.expirationDurations as |duration|}} diff --git a/app/templates/head.hbs b/app/templates/head.hbs index 7100215..b21eccd 100644 --- a/app/templates/head.hbs +++ b/app/templates/head.hbs @@ -3,4 +3,4 @@ Add content you wish automatically added to the documents head here. The 'model' available in this template can be populated by setting values on the 'head-data' service. --}} -{{model.title}} +{{this.model.title}} diff --git a/app/templates/poll-error.hbs b/app/templates/poll-error.hbs index 2509f58..5df06a8 100644 --- a/app/templates/poll-error.hbs +++ b/app/templates/poll-error.hbs @@ -1,12 +1,12 @@
- {{#if decryptionFailed}} + {{#if this.decryptionFailed}}

{{t "error.poll.decryptionFailed.title"}}

{{t "error.poll.decryptionFailed.description"}}

- {{else if notFound}} + {{else if this.notFound}}

{{t "error.poll.notFound.title"}}

diff --git a/app/templates/poll.hbs b/app/templates/poll.hbs index f28706b..294f823 100644 --- a/app/templates/poll.hbs +++ b/app/templates/poll.hbs @@ -1,92 +1,94 @@ -{{title model.title}} +{{#let @model as |poll|}} + {{title poll.title}} -
-
-
-