decide.nolog.cz/app/templates/poll/evaluation.hbs
jelhan 64a9dea5e7 refactor dates handling (#137)
* Remove dates ArrayProxy.
* Use moment template helpers.
* Pass timezone and locale directly to moment template helper to avoid issues.
2017-08-11 16:39:36 +02:00

32 lines
805 B
Handlebars

{{#if isEvaluable}}
{{poll-evaluation-summary
currentLocale=currentLocale
momentLongDayFormat=momentLongDayFormat
poll=model
sortedUsers=sortedUsers
timezone=timezone
}}
<h3>{{t 'poll.evaluation.overview'}}</h3>
{{poll-evaluation-chart
answerType=model.answerType
currentLocale=currentLocale
isFindADate=model.isFindADate
momentLongDayFormat=momentLongDayFormat
options=model.options
users=model.users
timezone=timezone
}}
{{/if}}
<h3>{{t 'poll.evaluation.participantTable'}}</h3>
{{poll-evaluation-participants-table
currentLocale=currentLocale
hasTimes=hasTimes
isFindADate=model.isFindADate
isFreeText=model.isFreeText
momentLongDayFormat=momentLongDayFormat
options=model.options
sortedUsers=sortedUsers
timezone=timezone
}}