# HG changeset patch # User Teemu Piippo # Date 1512990059 -7200 # Node ID ead971f9569c498d197dececdb50af4082cf8bf2 # Parent 83cd29dee853265f5f36912aa5d217de63d02d70 add missing files diff -r 83cd29dee853 -r ead971f9569c templates/macros.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/macros.html Mon Dec 11 13:00:59 2017 +0200 @@ -0,0 +1,3 @@ +{% macro route_rep(route_splice) %} +{{route_splice[0]}}{{route_splice[1]}}{{route_splice[2]}} +{% endmacro %} 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']}}
+ +