|
1 {% from "macros.html" import route_rep %} |
|
2 <html> |
|
3 <head> |
|
4 <link rel="icon" type="image/png" href="../static/favicon.png" /> |
|
5 <link rel="stylesheet" type="text/css" href="../static/style.css" /> |
|
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 } |
|
14 .sarake-linja, .stop-code |
|
15 { |
|
16 font-weight: bold; |
|
17 } |
|
18 .stop-name |
|
19 { |
|
20 font-size: 75%; |
|
21 /*font-style: italic;*/ |
|
22 } |
|
23 </style> |
|
24 </head> |
|
25 <body> |
|
26 <table class='aikataulu service-{{service}}' cellspacing="0"> |
|
27 <thead> |
|
28 <tr> |
|
29 <th colspan='4' class='primary-heading'> |
|
30 <span>{{tr('interesting', 'headings')}}</span> |
|
31 </th> |
|
32 </tr> |
|
33 </thead> |
|
34 {% for day_data in data %} |
|
35 <thead> |
|
36 <tr class='headings'> |
|
37 <th colspan='4'> |
|
38 {{day_data['date'].strftime('%A %e. %B %Y')}} |
|
39 <th> |
|
40 </tr> |
|
41 <tr class='headings'> |
|
42 <th>{{tr('time', 'headings')}}</th> |
|
43 <th>{{tr('start-bus-stop', 'headings')}}</th> |
|
44 <th>{{tr('route', 'headings')}}</th> |
|
45 <th>{{tr('trip-description', 'headings')}}</th> |
|
46 </tr> |
|
47 </thead> |
|
48 <tbody> |
|
49 {% for entry in day_data['leaves'] %} |
|
50 <tr class="{% if False %} yö {% endif %}"> |
|
51 <td class='sarake-aika'> |
|
52 {{entry['departure'].strftime('%H:%M')}}</td> |
|
53 <td class='sarake-pysäkki'> |
|
54 <a href="../stop/{{entry['stop'].code}}"><img src="../static/{{entry['stop'].typename}}.png" height="24" /> <span class='stop-code'>{{entry['stop'].code}} </span><br /><span class='stop-name'>{{entry['stop'].name}}</span></a> |
|
55 </td> |
|
56 <td class='sarake-linja linja'> |
|
57 <a href="../trip/{{entry['trip']}}">{{entry['route']}}</a> |
|
58 </td> |
|
59 <td class='sarake-määränpää' colspan='2'> |
|
60 <a href="../trip/{{entry['trip']}}">{{entry['description']}}</a> |
|
61 </td> |
|
62 </tr> |
|
63 {% endfor %} |
|
64 </tbody> |
|
65 {% endfor %} |
|
66 </table> |
|
67 </body> |
|
68 </html> |