]> WPIA git - motion.git/blob - templates/motion.html
add: cancel running motion (with comment)
[motion.git] / templates / motion.html
1 <div class="motion panel panel-default" id="motion-{{motion.id}}">
2   <div class="motion-title panel-heading">
3     <a href="/motion/{{motion.id}}" class="anchor">#</a>
4     <span class="title-text">{{motion.name}}</span> ({{ 'Running' if motion.running else ('Canceled' if motion.canceled != None else 'Finished') }})
5     <div class="date">
6       <div>Posed: {{motion.posed|timestamp}} by {{motion.poser}}</div>
7 {%- if motion.canceled != None %}
8       <div>Canceled: {{motion.canceled|timestamp}} by {{motion.canceler}}</div></div>
9 {%- else %}
10       <div>Votes until: {{motion.deadline|timestamp}}</div></div>
11 {%- endif %}
12   </div>
13   <div class="panel-body">
14     <p>{{motion.content}}</p>
15 {%- if motion.yes or motion.no or motion.abstain %}
16     <p>
17 {%- for vote in ['yes', 'no', 'abstain'] %}
18 {{vote|capitalize}} <span class="badge">{{motion[vote]}}</span><br>
19 {%- endfor %}
20     </p>
21 {%- endif %}
22 {%- if motion.canceled != None %}
23     <p>Cancelation reason: {{motion.cancelation_reason}}</p>
24 {%- endif %}
25   </div>
26 {%- block content %}{% endblock %}
27 </div>