templates/pysäkki.html

changeset 25
cb423946cf33
parent 24
e6bdb9c54096
child 26
69cc75506d4f
equal deleted inserted replaced
24:e6bdb9c54096 25:cb423946cf33
1 <html>
2 <head>
3 <link rel="icon" type="image/png" href="/static/favicon.png" />
4 <link rel="stylesheet" type="text/css" href="/static/style.css" />
5 <meta charset='UTF-8' />
6 <title>{{nimi}}</title>
7 <style>
8 .sarake-määränpää
9 {
10 text-align: left;
11 }
12 </style>
13 {% if tausta %}
14 <style>
15 /*body
16 {
17 background: url('/{{tausta}}') no-repeat center center fixed;
18 background-size: cover;
19 }*/
20 </style>
21 {% endif %}
22 </head>
23 <body>
24 <h1><img src="/static/iso-pysäkki.png" height="96" /> <span>{{name}}</span></h1>
25 <p id="pysäkki-info">
26 {{region or ""}}
27
28 <a class="pysäkki-sijainti" href="{{linkki_karttaan}}" target="_blank">📌 ({{location}})</a>
29 </p>
30 {% if cluster %}
31 <p>
32 <a href="/pysäkkiryhmä/{{cluster}}">{{tr('nearby-area-schedule', 'misc-text')}}</a>
33 </p>
34 {% endif %}
35 <table class='aikataulu' cellspacing="0">
36 <tr>
37 <th class='sarake-aika'>{{tr('time', 'headings')}}</th>
38 <th class='sarake-linja'>{{tr('route', 'headings')}}</th>
39 <th class='sarake-määränpää'>{{tr('destination', 'headings')}}</th>
40 </tr>
41 {% for halt in schedule %}
42 <tr class="{% if halt['night'] %} yö {% endif %}">
43 <td class='sarake-aika'>{{halt['time']}}</td>
44 <td class='sarake-linja linja'>
45 <a href="/ajovuoro/{{halt['trip']}}">{{halt['route']}}</a>
46 </td>
47 <td class='sarake-määränpää'>
48 <a href="/ajovuoro/{{halt['trip']}}">{{halt['sign']}}</a>
49 </td>
50 </tr>
51 {% endfor %}
52 </table>
53 </body>
54 </html>

mercurial