]> WPIA git - motion.git/blobdiff - templates/single_motion.html
add: an user with 'audit' privilleges can view all votes
[motion.git] / templates / single_motion.html
index ac4ff79148bc4ef86292b5040f1611cbda0c8a75..a15e397d182744086b762f90fac08ab8d6d64efc 100644 (file)
@@ -4,6 +4,18 @@ Motion: {{motion.name}}
 {%- endblock %}
 {% block body %}
 {%- include 'motion.html' %}
+{%- if votes %}
+<div class="panel panel-info" id="votes">
+  <div class="panel-heading">
+    Motion Votes
+  </div>
+  <div class="panel-body">
+    {%- for row in votes %}
+    <div>{{row.email}}: {{row.result}}</div>
+    {%- endfor %}
+  </div>
+</div>
+{%- endif %}
 {%- if motion.running %}
 {%- if may_vote %}
 <form action="/motion/{{motion.id}}/vote" method="POST">