Thu, 06 Dec 2018 19:35:38 +0200
bus live information
|
98
c07a77c8a070
fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents:
97
diff
changeset
|
1 | {% from "macros.html" import route_rep, bus_stop_rep %} |
| 95 | 2 | <html> |
| 3 | <head> | |
| 96 | 4 | <link rel="icon" type="image/png" href="./static/favicon.png" /> |
| 5 | <link rel="stylesheet" type="text/css" href="./static/style.css" /> | |
| 95 | 6 | <meta charset='UTF-8' /> |
| 7 | <title>{{tr('interesting', 'headings')}}</title> | |
| 8 | <!-- <meta http-equiv='refresh' content='60'> --> | |
| 9 | <style> | |
| 10 | .sarake-määränpää, .sarake-pysäkki | |
| 11 | { | |
| 12 | text-align: left; | |
| 13 | } | |
|
98
c07a77c8a070
fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents:
97
diff
changeset
|
14 | .sarake-linja |
| 95 | 15 | { |
| 16 | font-weight: bold; | |
| 17 | } | |
| 18 | </style> | |
| 19 | </head> | |
| 20 | <body> | |
| 21 | <table class='aikataulu service-{{service}}' cellspacing="0"> | |
| 22 | <thead> | |
| 23 | <tr> | |
| 24 | <th colspan='4' class='primary-heading'> | |
| 25 | <span>{{tr('interesting', 'headings')}}</span> | |
| 26 | </th> | |
| 27 | </tr> | |
| 28 | </thead> | |
| 29 | {% for day_data in data %} | |
| 30 | <thead> | |
| 31 | <tr class='headings'> | |
| 32 | <th colspan='4'> | |
| 33 | {{day_data['date'].strftime('%A %e. %B %Y')}} | |
| 34 | <th> | |
| 35 | </tr> | |
| 36 | <tr class='headings'> | |
| 37 | <th>{{tr('time', 'headings')}}</th> | |
| 38 | <th>{{tr('start-bus-stop', 'headings')}}</th> | |
| 39 | <th>{{tr('route', 'headings')}}</th> | |
| 40 | <th>{{tr('trip-description', 'headings')}}</th> | |
| 41 | </tr> | |
| 42 | </thead> | |
| 43 | <tbody> | |
| 44 | {% for entry in day_data['leaves'] %} | |
| 45 | <tr class="{% if False %} yö {% endif %}"> | |
| 46 | <td class='sarake-aika'> | |
| 47 | {{entry['departure'].strftime('%H:%M')}}</td> | |
| 48 | <td class='sarake-pysäkki'> | |
|
98
c07a77c8a070
fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents:
97
diff
changeset
|
49 | {{bus_stop_rep(entry['stop'])}} |
| 95 | 50 | </td> |
| 51 | <td class='sarake-linja linja'> | |
| 97 | 52 | <a href="./trip/{{entry['trip']}}">{{entry['route']}}</a> |
| 95 | 53 | </td> |
| 54 | <td class='sarake-määränpää' colspan='2'> | |
| 97 | 55 | <a href="./trip/{{entry['trip']}}">{{entry['description']}}</a> |
| 95 | 56 | </td> |
| 57 | </tr> | |
| 58 | {% endfor %} | |
| 59 | </tbody> | |
| 60 | {% endfor %} | |
| 61 | </table> | |
| 62 | </body> | |
| 63 | </html> |