decide.nolog.cz/app/components/poll-evaluation-summary.hbs
2023-09-22 22:22:48 +02:00

50 lines
No EOL
1.2 KiB
Handlebars

<h2>
{{t "poll.evaluation.label"}}
</h2>
<p class="participants">
{{t "poll.evaluation.participants" count=this.participantsCount}}
</p>
<p class="best-options">
{{#if @poll.isFindADate}}
{{t
"poll.evaluation.bestOption.label.findADate"
count=this.bestOptions.length
}}
{{else}}
{{t
"poll.evaluation.bestOption.label.makeAPoll"
count=this.bestOptions.length
}}
{{/if}}
{{#if this.multipleBestOptions}}
<ul>
{{#each this.bestOptions as |evaluationBestOption|}}
<li>
<PollEvaluationSummaryOption
@currentLocale={{this.currentLocale}}
@evaluationBestOption={{evaluationBestOption}}
@isFindADate={{@poll.isFindADate}}
@timeZone={{@timeZone}}
/>
</li>
{{/each}}
</ul>
{{else}}
<PollEvaluationSummaryOption
@currentLocale={{this.currentLocale}}
@evaluationBestOption={{this.bestOptions.firstObject}}
@isFindADate={{@poll.isFindADate}}
@timeZone={{@timeZone}}
/>
{{/if}}
</p>
<p class="last-participation">
{{t
"poll.evaluation.lastParticipation"
ago=(format-date-relative this.lastParticipationAt)
}}
</p>