2023-09-21 12:30:14 +02:00
|
|
|
{{!
|
2017-08-11 16:39:36 +02:00
|
|
|
There must not be a line break between option text and "</strong>." cause otherwise
|
|
|
|
we will see a space between option string and following dot.
|
2023-09-21 12:30:14 +02:00
|
|
|
}}
|
2020-01-18 12:17:06 +01:00
|
|
|
{{#if @isFindADate}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{! Need to disable block indentation rule cause there shouldn't be a space between date and dot }}
|
|
|
|
{{! template-lint-disable block-indentation }}
|
|
|
|
<strong class="best-option-value">
|
2023-09-21 12:30:14 +02:00
|
|
|
{{!
|
|
|
|
TODO: Simplify to dateStyle="full" and timeStyle="short" after upgrading to Ember Intl v6
|
|
|
|
}}
|
|
|
|
{{format-date
|
|
|
|
@evaluationBestOption.option.jsDate
|
|
|
|
weekday="long"
|
|
|
|
day="numeric"
|
|
|
|
month="long"
|
|
|
|
year="numeric"
|
|
|
|
hour=(if @evaluationBestOption.option.hasTime "numeric" undefined)
|
|
|
|
minute=(if @evaluationBestOption.option.hasTime "numeric" undefined)
|
|
|
|
timeZone=(if @timeZone @timeZone undefined)
|
2018-12-29 20:35:04 +01:00
|
|
|
}}</strong>.
|
|
|
|
{{! template-lint-enable block-indentation }}
|
2016-06-20 20:48:48 +02:00
|
|
|
{{else}}
|
2023-09-21 12:30:14 +02:00
|
|
|
<strong
|
|
|
|
class="best-option-value"
|
|
|
|
>{{@evaluationBestOption.option.title}}</strong>.
|
2016-06-20 20:48:48 +02:00
|
|
|
{{/if}}
|
|
|
|
|
2023-09-21 12:30:14 +02:00
|
|
|
<br />
|
2016-06-20 20:48:48 +02:00
|
|
|
|
2020-01-18 12:17:06 +01:00
|
|
|
{{#if @isFindADate}}
|
|
|
|
{{#if @evaluationBestOption.answers.yes}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{t
|
|
|
|
"poll.evaluation.bestOptionParticipants.findADate.yes"
|
2020-01-18 12:17:06 +01:00
|
|
|
count=@evaluationBestOption.answers.yes
|
2018-12-29 20:35:04 +01:00
|
|
|
}}
|
2016-06-20 20:48:48 +02:00
|
|
|
{{/if}}
|
2020-01-18 12:17:06 +01:00
|
|
|
{{#if @evaluationBestOption.answers.maybe}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{t
|
|
|
|
"poll.evaluation.bestOptionParticipants.findADate.maybe"
|
2020-01-18 12:17:06 +01:00
|
|
|
count=@evaluationBestOption.answers.maybe
|
2018-12-29 20:35:04 +01:00
|
|
|
}}
|
2016-06-20 20:48:48 +02:00
|
|
|
{{/if}}
|
2020-01-18 12:17:06 +01:00
|
|
|
{{#if @evaluationBestOption.answers.no}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{t
|
|
|
|
"poll.evaluation.bestOptionParticipants.findADate.no"
|
2020-01-18 12:17:06 +01:00
|
|
|
count=@evaluationBestOption.answers.no
|
2018-12-29 20:35:04 +01:00
|
|
|
}}
|
2016-06-20 20:48:48 +02:00
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
2020-01-18 12:17:06 +01:00
|
|
|
{{#if @evaluationBestOption.answers.yes}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{t
|
|
|
|
"poll.evaluation.bestOptionParticipants.makeAPoll.yes"
|
2020-01-18 12:17:06 +01:00
|
|
|
count=@evaluationBestOption.answers.yes
|
2018-12-29 20:35:04 +01:00
|
|
|
}}
|
2016-06-20 20:48:48 +02:00
|
|
|
{{/if}}
|
2020-01-18 12:17:06 +01:00
|
|
|
{{#if @evaluationBestOption.answers.maybe}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{t
|
|
|
|
"poll.evaluation.bestOptionParticipants.makeAPoll.maybe"
|
2020-01-18 12:17:06 +01:00
|
|
|
count=@evaluationBestOption.answers.maybe
|
2018-12-29 20:35:04 +01:00
|
|
|
}}
|
2016-06-20 20:48:48 +02:00
|
|
|
{{/if}}
|
2020-01-18 12:17:06 +01:00
|
|
|
{{#if @evaluationBestOption.answers.no}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{t
|
|
|
|
"poll.evaluation.bestOptionParticipants.makeAPoll.no"
|
2020-01-18 12:17:06 +01:00
|
|
|
count=@evaluationBestOption.answers.no
|
2018-12-29 20:35:04 +01:00
|
|
|
}}
|
2016-06-20 20:48:48 +02:00
|
|
|
{{/if}}
|
2020-01-18 12:17:06 +01:00
|
|
|
{{/if}}
|