diff -r 83cd29dee853 -r ead971f9569c templates/stop_week.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/stop_week.html Mon Dec 11 13:00:59 2017 +0200 @@ -0,0 +1,177 @@ +{% from "macros.html" import route_rep %} + + + + + + {{name}} + + +{% macro night_class(hour) %} +{% if hour < 5 or hour >= 23 %} +night +{% endif %} +{% endmacro %} + + + + + + + + + {% for day in week %} + + + + {% for hour, hour_schedule in day['schedule'].items() %} + + + {% for entry in hour_schedule %} + + + {% endfor %} + + {% endfor %} + {% endfor %} + +
+ {{ref}} {{name}} +
{{day['day'].strftime('%a %e.%m.')}}
{{hour}}{{'%02d' % entry['minute']}}{{entry['route']}}
+ +