-<div class="motion panel panel-default" id="motion-{{motion.id}}">
- <div class="motion-title panel-heading">
- <a href="/motion/{{motion.id}}" class="anchor">#</a>
+<div class="motion card" id="motion-{{motion.id}}">
+ <div class="motion-title card-heading
+ {%- if motion.running %} alert-light
+{%- elif motion.canceled %} alert-warning
+{%- elif motion.yes is defined %}{% if motion.yes != None and motion.no != None and motion.yes > motion.no %} alert-success{% else %} alert-danger{% endif %}
+{%- else %} bg-light{%- endif -%}
+">