d2a24daf66
* Update dependency ember-template-lint to v5 * fix new linting violations --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jeldrik Hanschke <admin@jhanschke.de>
50 lines
No EOL
1.2 KiB
Handlebars
50 lines
No EOL
1.2 KiB
Handlebars
<div class="evaluation-summary">
|
|
<h2>
|
|
{{t "poll.evaluation.label"}}
|
|
</h2>
|
|
|
|
<p class="participants">
|
|
{{t "poll.evaluation.participants" count=@poll.users.length}}
|
|
</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 (get this.bestOptions.length 1)}}
|
|
<ul>
|
|
{{#each this.bestOptions as |evaluationBestOption|}}
|
|
<li>
|
|
<PollEvaluationSummaryOption
|
|
@evaluationBestOption={{evaluationBestOption}}
|
|
@isFindADate={{@poll.isFindADate}}
|
|
@timeZone={{@timeZone}}
|
|
/>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
{{else}}
|
|
<PollEvaluationSummaryOption
|
|
@evaluationBestOption={{get this.bestOptions 0}}
|
|
@isFindADate={{@poll.isFindADate}}
|
|
@timeZone={{@timeZone}}
|
|
/>
|
|
{{/if}}
|
|
</p>
|
|
|
|
<p class="last-participation">
|
|
{{t
|
|
"poll.evaluation.lastParticipation"
|
|
ago=(format-date-relative this.lastParticipationAt)
|
|
}}
|
|
</p>
|
|
</div> |