templates/interesting.html

Tue, 18 Sep 2018 19:06:22 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 18 Sep 2018 19:06:22 +0300
changeset 119
f546e0d6df65
parent 98
c07a77c8a070
permissions
-rw-r--r--

added new centrum area

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
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 }
98
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 97
diff changeset
14 .sarake-linja
95
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 </style>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
19 </head>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
20 <body>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
21 <table class='aikataulu service-{{service}}' cellspacing="0">
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
22 <thead>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
23 <tr>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
24 <th colspan='4' class='primary-heading'>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
25 <span>{{tr('interesting', 'headings')}}</span>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
26 </th>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
27 </tr>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
28 </thead>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
29 {% for day_data in data %}
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
30 <thead>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
31 <tr class='headings'>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
32 <th colspan='4'>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
33 {{day_data['date'].strftime('%A %e. %B %Y')}}
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
34 <th>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
35 </tr>
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>{{tr('time', 'headings')}}</th>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
38 <th>{{tr('start-bus-stop', 'headings')}}</th>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
39 <th>{{tr('route', 'headings')}}</th>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
40 <th>{{tr('trip-description', 'headings')}}</th>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
41 </tr>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
42 </thead>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
43 <tbody>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
44 {% for entry in day_data['leaves'] %}
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
45 <tr class="{% if False %}{% endif %}">
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
46 <td class='sarake-aika'>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
47 {{entry['departure'].strftime('%H:%M')}}</td>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
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
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
50 </td>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
51 <td class='sarake-linja linja'>
97
6967657fced6 fix paths
Teemu Piippo <teemu@hecknology.net>
parents: 96
diff changeset
52 <a href="./trip/{{entry['trip']}}">{{entry['route']}}</a>
95
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
53 </td>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
54 <td class='sarake-määränpää' colspan='2'>
97
6967657fced6 fix paths
Teemu Piippo <teemu@hecknology.net>
parents: 96
diff changeset
55 <a href="./trip/{{entry['trip']}}">{{entry['description']}}</a>
95
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
56 </td>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
57 </tr>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
58 {% endfor %}
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
59 </tbody>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
60 {% endfor %}
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
61 </table>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
62 </body>
f49c984c8fa1 added a file
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
63 </html>

mercurial