summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3559358)
- removing unnecessary closing div tag
- style should be set even when vote_count equals to 0
{% for item in poll.items.all %}
<li>
{{item.content}}
{% for item in poll.items.all %}
<li>
{{item.content}}
- <div class="poll-bar"><div class="poll-bar-inner"
- {% if vote_count %}
- style="width:{{item.vote_ratio|stringformat:"f"}}%;"
- {% endif %}
- ></div></div>
+ <div class="poll-bar"><div class="poll-bar-inner" style="width:{{item.vote_ratio|stringformat:"f"}}%;"></div>