Get rid of unnecessary controller reference in poll template.

This commit is contained in:
Vikhyat Korrapati 2014-04-16 12:11:41 +05:30
parent cba7d3fc82
commit 11297efed5
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>