decide.nolog.cz/app/templates/components/poll-evaluation-summary-option.hbs

60 lines
1.8 KiB
Handlebars
Raw Normal View History

{{!--
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.
--}}
{{#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">
{{moment-format
@evaluationBestOption.option.title
(if @evaluationBestOption.option.hasTime "LLLL" @momentLongDayFormat)
locale=@currentLocale
timeZone=@timezone
2018-12-29 20:35:04 +01:00
}}</strong>.
{{! template-lint-enable block-indentation }}
{{else}}
<strong class="best-option-value">{{@evaluationBestOption.option.title}}</strong>.
{{/if}}
2018-12-29 20:35:04 +01:00
<br>
{{#if @isFindADate}}
{{#if @evaluationBestOption.answers.yes}}
2018-12-29 20:35:04 +01:00
{{t
"poll.evaluation.bestOptionParticipants.findADate.yes"
count=@evaluationBestOption.answers.yes
2018-12-29 20:35:04 +01:00
}}
{{/if}}
{{#if @evaluationBestOption.answers.maybe}}
2018-12-29 20:35:04 +01:00
{{t
"poll.evaluation.bestOptionParticipants.findADate.maybe"
count=@evaluationBestOption.answers.maybe
2018-12-29 20:35:04 +01:00
}}
{{/if}}
{{#if @evaluationBestOption.answers.no}}
2018-12-29 20:35:04 +01:00
{{t
"poll.evaluation.bestOptionParticipants.findADate.no"
count=@evaluationBestOption.answers.no
2018-12-29 20:35:04 +01:00
}}
{{/if}}
{{else}}
{{#if @evaluationBestOption.answers.yes}}
2018-12-29 20:35:04 +01:00
{{t
"poll.evaluation.bestOptionParticipants.makeAPoll.yes"
count=@evaluationBestOption.answers.yes
2018-12-29 20:35:04 +01:00
}}
{{/if}}
{{#if @evaluationBestOption.answers.maybe}}
2018-12-29 20:35:04 +01:00
{{t
"poll.evaluation.bestOptionParticipants.makeAPoll.maybe"
count=@evaluationBestOption.answers.maybe
2018-12-29 20:35:04 +01:00
}}
{{/if}}
{{#if @evaluationBestOption.answers.no}}
2018-12-29 20:35:04 +01:00
{{t
"poll.evaluation.bestOptionParticipants.makeAPoll.no"
count=@evaluationBestOption.answers.no
2018-12-29 20:35:04 +01:00
}}
{{/if}}
{{/if}}