Commit | Line | Data |
---|---|---|
e25b7b61 MW |
1 | <ol class="pollResultList"> |
2 | {foreach from=$poll->getOptions(true) item=option} | |
3 | <li class="pollResultItem"> | |
4 | <span class="pollMeter" style="width: {if $option->getRelativeVotes($poll)}{@$option->getRelativeVotes($poll)}%{else}0{/if}"> </span> | |
5 | <div class="caption"> | |
8a5f3bf8 MW |
6 | <span class="optionName">{$option->optionValue} ({#$option->votes})</span> |
7 | <span class="relativeVotes">{@$option->getRelativeVotes($poll)}%</span> | |
e25b7b61 MW |
8 | </div> |
9 | </li> | |
10 | {/foreach} | |
11 | </ol> |