-<div class="motion panel panel-default" id="motion-{{motion.id}}">
- <div class="motion-title panel-heading">
- <a href="/motion/{{motion.id}}" class="anchor">#</a>
- <span class="title-text">{{motion.name}}</span> ({{ 'Running' if motion.running else 'Finished' }})
+<div class="motion card" id="motion-{{motion.id}}">
+ <div class="motion-title card-heading
+ {%- if motion.running %} bg-light
+{%- elif motion.canceled %} text-white bg-warning
+{%- elif motion.yes is defined %}{% if motion.yes != None and motion.no != None and motion.yes > motion.no %} text-white bg-success{% else %} text-white bg-danger{% endif %}
+{%- else %} bg-light{%- endif -%}
+">
+ <span class="title-text">{{motion.name}}</span> ({{ 'Running' if motion.running else ('Canceled' if motion.canceled != None else 'Finished') }})
+ <span class="motion-type">{{motion.type}}</span>
+ <div># <a href="/motion/{{motion.identifier}}" class="anchor">{{motion.identifier}}</a></div>