]> WPIA git - motion.git/commitdiff
fix finished motions without votes
authorFelix Dörre <felix@dogcraft.de>
Tue, 5 Dec 2017 18:08:37 +0000 (19:08 +0100)
committerFelix Dörre <felix@dogcraft.de>
Tue, 5 Dec 2017 18:08:37 +0000 (19:08 +0100)
templates/motion.html

index bcead1fc573ae89ec89326a2b3874b049ef0d9a6..eac27bda134706da79bfe157ad45f4d4e3d5c242 100644 (file)
@@ -1,7 +1,7 @@
 <div class="motion panel
 {%- if motion.running %} panel-default
 {%- elif motion.canceled %} panel-warning
-{%- elif motion.yes is defined %}{% if motion.yes > motion.no %} panel-success{% else %} panel-danger{% endif %}
+{%- elif motion.yes is defined %}{% if motion.yes != None and motion.no != None and motion.yes > motion.no %} panel-success{% else %} panel-danger{% endif %}
 {%- else %} panel-default{%- endif -%}
 " id="motion-{{motion.id}}">
   <div class="motion-title panel-heading">