templates/interesting.html

Tue, 01 May 2018 13:24:33 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 01 May 2018 13:24:33 +0300
changeset 97
6967657fced6
parent 96
5acbf5a81383
child 98
c07a77c8a070
permissions
-rw-r--r--

fix paths

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

mercurial