]> WPIA git - motion.git/blob - templates/motion.html
initial commit for motion applicaiton
[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 'Finished' }})
5     <div class="date"><div>Posed: {{motion.posed}}</div><div>Votes until: {{motion.deadline}}</div></div>
6   </div>
7   <div class="panel-body">
8     <p>{{motion.content}}</p>
9 {%- if motion.yes or motion.no or motion.abstain %}
10     <p>
11 {%- for vote in ['yes', 'no', 'abstain'] %}
12 {{vote|capitalize}} <span class="badge">{{motion[vote]}}</span><br>
13 {%- endfor %}
14     </p>
15 {%- endif %}
16   </div>
17 {%- block content %}{% endblock %}
18 </div>