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