fix in librarian
[wolnelektury.git] / apps / polls / templates / polls / tags / poll.html
index 355348a..4c4d2b5 100644 (file)
@@ -1,4 +1,5 @@
 {% load i18n %}
+{% load ssi_csrf_token from ssify %}
 
 {% if poll %}
     {% if voted_already %}
@@ -9,11 +10,7 @@
                 {% 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>
                     </li>
                 {% endfor %}
                 </ul>
@@ -22,7 +19,7 @@
     {% else %}
         <div class="poll">
             <p>{{poll.question}}</p>
-            <form action="{{poll.get_absolute_url}}" method="post">{% csrf_token %}
+            <form action="{{poll.get_absolute_url}}" method="post">{% ssi_csrf_token %}
             {{ form.vote }}
             <input type="submit" value="{% trans "Submit" %}" />
             </form>