templates/route.html

Fri, 04 May 2018 21:47:33 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 04 May 2018 21:47:33 +0300
changeset 101
70d16b5e14ca
parent 98
c07a77c8a070
permissions
-rw-r--r--

...

98
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
1 {% from "macros.html" import route_rep, bus_stop_rep %}
29
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
2 <html>
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
3 <head>
98
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
4 <base href='..' />
35
Teemu Piippo <teemu@hecknology.net>
parents: 34
diff changeset
5 <link rel="icon" type="image/png" href="../static/favicon.png" />
Teemu Piippo <teemu@hecknology.net>
parents: 34
diff changeset
6 <link rel="stylesheet" type="text/css" href="../static/style.css" />
29
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
7 <meta charset='UTF-8' />
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
8 <title>{{name}}</title>
32
ca1a0ea81cf6 Yhdistetty pysäkki.png ja iso-pysäkki.png
Teemu Piippo <teemu@hecknology.net>
parents: 29
diff changeset
9 <meta http-equiv='refresh' content='60'>
29
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
10 </head>
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
11 <body>
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
12 <h1><span>{{name}}</span></h1>
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
13 <table class='aikataulu' cellspacing="0">
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
14 <tr>
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
15 <th class='sarake-aika'>{{tr('time', 'headings')}}</th>
98
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
16 <th class='sarake-lähtö'>{{tr('trip-description', 'headings')}}</th>
29
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
17 </tr>
98
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
18 {% for stop, schedule in schedules.items() %}
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
19 <thead>
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
20 <tr>
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
21 <td colspan='2'>{{bus_stop_rep(stop)}}</th>
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
22 </tr>
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
23 </thead>
29
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
24 {% for trip in schedule %}
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
25 <tr>
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
26 <td>{{trip['time']}}</td>
98
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
27 <td><a href="./trip/{{trip['name']}}">{{trip['description']}}</a></td>
29
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
28 </tr>
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
29 {% endfor %}
98
c07a77c8a070 fixes, updates, new regions + priorities
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
30 {% endfor %}
29
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
31 </table>
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
32 </body>
2c78e68d7363 Mööö
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
33 </html>

mercurial