Merge pull request #2268 from vikhyat/poll-plugin

Get rid of unnecessary controller reference in poll template
This commit is contained in:
Robin Ward 2014-04-16 17:24:35 -04:00
commit d4502070ed
1 changed files with 5 additions and 5 deletions

View File

@ -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>