election/doc/source/_exts/events.jinja
Tristan Cacqueray e8a09b0b7d Add 'draft' banner and show events status in timeline
Change-Id: I383b5b67e09d84a64ef234727dae8b973c13599d
2016-03-10 20:49:20 -05:00

22 lines
819 B
Django/Jinja

.. raw:: html
<span id="eventname"></span>
<span id="eventtimer"></span>
<script>
var events_timeline = [
{% for event in events %}
{ date: "{{ event['date'] }}", name: "{{ event['name'] }}" },
{% endfor %}
];
</script>
<br /><br />
+------------------------------------+------------------------------------+-----------+
| Events | Date | Status |
+====================================+====================================+===========+
{% for event in events %}
| {{ "%29s" % event['name_str'] }} | {{ "%29s" % event['date_str'] }} | {{ "%7s" % event['status'] }} |
+------------------------------------+------------------------------------+-----------+
{% endfor %}