Commits

Anonymous committed ce5511e

Avoid decimal comma when rendering poll bars.

Comments (0)

Files changed (1)

djangobb_forum/templates/djangobb_forum/topic.html

             <ul>               
             {% for choice in poll.choices.all %}
                 <li>
-                    <div class="bar" style="width:{{ choice.percent }}%;" title="{{ choice.choice }}">&nbsp;</div>
+                    <div class="bar" style="width:{{ choice.percent|floatformat:0 }}%;" title="{{ choice.choice }}">&nbsp;</div>
                     {{ choice.votes }} vote{{ choice.votes|pluralize }} ({{ choice.percent|floatformat:1 }}%) for: {{ choice.choice }}
                 </li>
             {% endfor %}