Get rid of unnecessary controller reference in poll template.
This commit is contained in:
parent
cba7d3fc82
commit
11297efed5
|
@ -1,11 +1,11 @@
|
|||
<table>
|
||||
{{#each poll.options}}
|
||||
<tr {{bind-attr class=checked:active}} {{action selectOption option}}>
|
||||
<td class="radio"><input type="radio" name="poll" {{bind-attr checked=checked disabled=controller.disableRadio}}></td>
|
||||
<td class="radio">
|
||||
<input type="radio" name="poll" {{bind-attr checked=checked disabled=controller.disableRadio}}>
|
||||
</td>
|
||||
<td class="option">
|
||||
<div class="option">
|
||||
{{{ option }}}
|
||||
</div>
|
||||
<div class="option">{{{option}}}</div>
|
||||
{{#if controller.showResults}}
|
||||
<div class="result">{{i18n poll.voteCount count=votes}}</div>
|
||||
{{/if}}
|
||||
|
@ -24,7 +24,7 @@
|
|||
{{/if}}
|
||||
</button>
|
||||
|
||||
{{#if controller.showToggleClosePoll}}
|
||||
{{#if showToggleClosePoll}}
|
||||
<button {{action toggleClosePoll}} class="btn btn-small">
|
||||
{{#if poll.closed}}
|
||||
<i class="fa fa-unlock-alt"></i>
|
||||
|
|
Loading…
Reference in New Issue