diff -r 336c750b7b5d -r 382dd85b83a2 templates/stop_display.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/stop_display.html Mon Sep 25 10:46:23 2017 +0300 @@ -0,0 +1,265 @@ + + + + + + {{name}} + + + + + + +

{{ref}} {{name}}

+
+ + {% for schedule_entry in schedule[:num_imminent_leaves] %} + + + + + + + {% endfor %} +
+ {% if schedule_entry['imminent'] %} + {{schedule_entry['time']}}​ + {% else %} + {{schedule_entry['time']}}​ + {% endif %} + {{schedule_entry['route']}}{{schedule_entry['sign']['destination']}} +
+ {% if num_imminent_leaves > 1 and schedule_entry['sign']['via'][0] and schedule_entry['sign']['via'][1] %} + {{schedule_entry['sign']['via'][0]}} - {{schedule_entry['sign']['via'][1]}} + {% for entry in schedule_entry['sign']['via'][2:] %}
{{entry}}{% endfor %}
+ {% else %} + {% for entry in schedule_entry['sign']['via'] %}{{entry}}
{% endfor %} + {% endif %} + +
+
+ {% if schedule[num_imminent_leaves] %} +
+ + {% for halt in schedule[num_imminent_leaves:] %} + + + + + + {% endfor %} +
+
+ {% endif %} + +