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