Thu, 06 Dec 2018 19:35:38 +0200
bus live information
{% from "macros.html" import route_rep, bus_stop_rep %} <html> <head> <link rel="icon" type="image/png" href="./static/favicon.png" /> <link rel="stylesheet" type="text/css" href="./static/style.css" /> <meta charset='UTF-8' /> <title>{{tr('interesting', 'headings')}}</title> <!-- <meta http-equiv='refresh' content='60'> --> <style> .sarake-määränpää, .sarake-pysäkki { text-align: left; } .sarake-linja { font-weight: bold; } </style> </head> <body> <table class='aikataulu service-{{service}}' cellspacing="0"> <thead> <tr> <th colspan='4' class='primary-heading'> <span>{{tr('interesting', 'headings')}}</span> </th> </tr> </thead> {% for day_data in data %} <thead> <tr class='headings'> <th colspan='4'> {{day_data['date'].strftime('%A %e. %B %Y')}} <th> </tr> <tr class='headings'> <th>{{tr('time', 'headings')}}</th> <th>{{tr('start-bus-stop', 'headings')}}</th> <th>{{tr('route', 'headings')}}</th> <th>{{tr('trip-description', 'headings')}}</th> </tr> </thead> <tbody> {% for entry in day_data['leaves'] %} <tr class="{% if False %} yö {% endif %}"> <td class='sarake-aika'> {{entry['departure'].strftime('%H:%M')}}</td> <td class='sarake-pysäkki'> {{bus_stop_rep(entry['stop'])}} </td> <td class='sarake-linja linja'> <a href="./trip/{{entry['trip']}}">{{entry['route']}}</a> </td> <td class='sarake-määränpää' colspan='2'> <a href="./trip/{{entry['trip']}}">{{entry['description']}}</a> </td> </tr> {% endfor %} </tbody> {% endfor %} </table> </body> </html>