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