Tue, 20 Jun 2017 09:37:43 +0300
lisää muutoksia
| 0 | 1 | <html> |
| 2 | <head> | |
|
11
e18ad36fbbf5
Lisätty favicon, korjattu tr()-funktio joka ei olettunut suomen kieleen (vaan kääntämättömään)
Teemu Piippo <teemu@hecknology.net>
parents:
5
diff
changeset
|
3 | <link rel="icon" type="image/png" href="/static/favicon.png" /> |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
14
diff
changeset
|
4 | <link rel="stylesheet" type="text/css" href="/static/style.css" /> |
| 0 | 5 | <meta charset='UTF-8' /> |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
14
diff
changeset
|
6 | <title>{{nimi}}</title> |
| 0 | 7 | <style> |
| 21 | 8 | .sarake-määränpää |
| 9 | { | |
| 10 | text-align: left; | |
| 11 | } | |
| 0 | 12 | </style> |
| 22 | 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 %} | |
| 0 | 22 | </head> |
| 23 | <body> | |
| 21 | 24 | <h1><img src="/static/iso-pysäkki.png" height="96" /> <span>{{nimi}}</span></h1> |
| 5 | 25 | <p id="pysäkki-info"> |
| 26 | {{alue or ""}} | |
| 27 | — | |
| 28 | <a class="pysäkki-sijainti" href="{{linkki_karttaan}}" target="_blank">📌 ({{sijainti}})</a> | |
| 29 | </p> | |
|
20
3199e289ae62
- Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents:
19
diff
changeset
|
30 | {% if cluster %} |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
14
diff
changeset
|
31 | <p> |
|
20
3199e289ae62
- Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents:
19
diff
changeset
|
32 | <a href="/pysäkkiryhmä/{{cluster}}">{{tr('nearby-area-schedule', 'misc-text')}}</a> |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
14
diff
changeset
|
33 | </p> |
|
20
3199e289ae62
- Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents:
19
diff
changeset
|
34 | {% endif %} |
| 22 | 35 | <table class='aikataulu' cellspacing="0"> |
| 0 | 36 | <tr> |
|
20
3199e289ae62
- Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents:
19
diff
changeset
|
37 | <th class='sarake-aika'>{{tr('time', 'headings')}}</th> |
|
3199e289ae62
- Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents:
19
diff
changeset
|
38 | <th class='sarake-linja'>{{tr('route', 'headings')}}</th> |
|
3199e289ae62
- Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents:
19
diff
changeset
|
39 | <th class='sarake-määränpää'>{{tr('destination', 'headings')}}</th> |
| 0 | 40 | </tr> |
| 41 | {% for rivi in aikataulu %} | |
| 5 | 42 | <tr class="{% if rivi['yö'] %} yö {% endif %}"> |
| 0 | 43 | <td class='sarake-aika'>{{rivi['aika']}}</td> |
| 44 | <td class='sarake-linja linja'> | |
| 45 | <a href="/ajovuoro/{{rivi['ajovuoro']}}">{{rivi['linja']}}</a> | |
| 46 | </td> | |
| 47 | <td class='sarake-määränpää'> | |
| 48 | <a href="/ajovuoro/{{rivi['ajovuoro']}}">{{rivi['kyltti']}}</a> | |
| 49 | </td> | |
| 50 | </tr> | |
| 51 | {% endfor %} | |
| 52 | </table> | |
| 53 | </body> | |
| 4 | 54 | </html> |