diff -r 302f840d6a65 -r 9139a94e540c templates/stop_week.html --- a/templates/stop_week.html Mon Mar 12 18:10:58 2018 +0200 +++ b/templates/stop_week.html Thu Mar 29 23:55:36 2018 +0300 @@ -140,6 +140,33 @@ background-color: #331f29; color: white; } + + .routes-legend .route + { + font-weight: bold + } + + .routes-legend .night-route + { + color: blue + } + + .routes-legend + { + border-spacing: 0px; + border-collapse: separate; + width: 100%; + border: 1px solid rgba(0, 0, 0, 0.2); + } + + .routes-legend tr + { + width: 100%; + } + + .routes-legend td.description + { + } {% macro night_class(hour) %} @@ -147,6 +174,12 @@ night {% endif %} {% endmacro %} + +{% macro all_night_routes(entry, description) %} +{% if description['all-night-routes'](entry, description) %} +night-route +{% endif %} +{% endmacro %} @@ -155,6 +188,22 @@ {{ref}} {{name}} + + + {% for day in week %} @@ -166,7 +215,9 @@ {% for entry in hour_schedule %} + {% if not description['simple'] %} + {% endif %} {% endfor %} {% endfor %}
+ + {% for entry in description['description'] %} + + + + + {% endfor %} +
+ {% for route in entry[0] %} + {{ route }} + {% endfor %} + {{ entry[1] }}
+
{{hour}}{{'%02d' % entry['minute']}}{{entry['route']}}