Fri, 11 Aug 2017 14:32:04 +0300
Asdf v2
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
1 | <html> |
|
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
2 | <head> |
| 35 | 3 | <link rel="icon" type="image/png" href="../static/favicon.png" /> |
| 4 | <link rel="stylesheet" type="text/css" href="../static/style.css" /> | |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
5 | <meta charset='UTF-8' /> |
|
32
ca1a0ea81cf6
Yhdistetty pysäkki.png ja iso-pysäkki.png
Teemu Piippo <teemu@hecknology.net>
parents:
31
diff
changeset
|
6 | <meta http-equiv='refresh' content='60'> |
| 26 | 7 | <title>{{name}}</title> |
| 27 | 8 | {% if amount_of_stops_in_cluster >= 5 %} |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
9 | <style> |
| 21 | 10 | div.stops-in-cluster |
| 11 | { | |
| 12 | margin-left: auto; | |
| 13 | margin-right: auto; | |
| 14 | } | |
| 15 | div.stops-in-cluster ul | |
| 16 | { | |
| 27 | 17 | columns: 3; |
| 21 | 18 | } |
| 27 | 19 | </style> |
| 20 | {% endif %} | |
| 21 | <style> | |
| 22 | 22 | div.stops-in-cluster li |
| 23 | { | |
| 24 | text-align: center; | |
| 27 | 25 | } |
|
38
d0ae1996abdd
Lisätty vilkkuvat merkit hetken päästä lähteville
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
26 | .sarake-määränpää, .sarake-pysäkki |
| 30 | 27 | { |
| 28 | text-align: left; | |
| 29 | } | |
| 27 | 30 | /* |
| 22 | 31 | body |
| 32 | { | |
| 33 | background: url('/static/tausta-pysäkki.png') no-repeat center center fixed; | |
| 34 | background-size: cover; | |
| 35 | }*/ | |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
36 | </style> |
|
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
37 | </head> |
|
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
38 | <body> |
| 35 | 39 | <h1><img src="../static/pysäkki.png" height="96" /> <span>{{name}}</span></h1> |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
40 | <p id="pysäkki-info"> |
|
32
ca1a0ea81cf6
Yhdistetty pysäkki.png ja iso-pysäkki.png
Teemu Piippo <teemu@hecknology.net>
parents:
31
diff
changeset
|
41 | <a class="pysäkki-sijainti" href="{{link_to_map}}" target="_blank">📌 ({{location}})</a> |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
42 | </p> |
| 21 | 43 | <div class="stops-in-cluster"> |
| 44 | <ul> | |
| 45 | {% for stop in stops_in_cluster %} | |
| 35 | 46 | <li><a href="../pysäkki/{{stop['id']}}"><img src="../static/pysäkki.png" height="24" /> {{stop['code']}} {{stop['name']}}</a></li> |
| 21 | 47 | {% endfor %} |
| 48 | </ul> | |
| 49 | </div> | |
| 22 | 50 | <table class='aikataulu' cellspacing="0"> |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
51 | <tr> |
|
20
3199e289ae62
- Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents:
19
diff
changeset
|
52 | <th class='sarake-aika'>{{tr('time', 'headings')}}</th> |
|
3199e289ae62
- Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents:
19
diff
changeset
|
53 | <th class='sarake-linja'>{{tr('route', 'headings')}}</th> |
|
3199e289ae62
- Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents:
19
diff
changeset
|
54 | <th class='sarake-määränpää'>{{tr('destination', 'headings')}}</th> |
|
3199e289ae62
- Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents:
19
diff
changeset
|
55 | <th class='sarake-pysäkki'>{{tr('bus-stop', 'headings')}}</th> |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
56 | </tr> |
|
24
e6bdb9c54096
Yhtenäistetty ohjelmakoodin kieli englanniksi
Teemu Piippo <teemu@hecknology.net>
parents:
22
diff
changeset
|
57 | {% for halt in schedule %} |
|
e6bdb9c54096
Yhtenäistetty ohjelmakoodin kieli englanniksi
Teemu Piippo <teemu@hecknology.net>
parents:
22
diff
changeset
|
58 | <tr class="{% if halt['night'] %} yö {% endif %}"> |
|
38
d0ae1996abdd
Lisätty vilkkuvat merkit hetken päästä lähteville
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
59 | <td class='sarake-aika'> |
|
d0ae1996abdd
Lisätty vilkkuvat merkit hetken päästä lähteville
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
60 | {% if halt['imminent'] %} |
|
d0ae1996abdd
Lisätty vilkkuvat merkit hetken päästä lähteville
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
61 | <span class='imminent-leave'>●</span> |
|
d0ae1996abdd
Lisätty vilkkuvat merkit hetken päästä lähteville
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
62 | {% endif %} |
|
d0ae1996abdd
Lisätty vilkkuvat merkit hetken päästä lähteville
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
63 | {{halt['time']}} |
|
d0ae1996abdd
Lisätty vilkkuvat merkit hetken päästä lähteville
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
64 | </td> |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
65 | <td class='sarake-linja linja'> |
|
48
428cfdf64ccc
Lisätty uudelleenohjauksia
Teemu Piippo <teemu@hecknology.net>
parents:
38
diff
changeset
|
66 | <a href="../trip/{{halt['trip']}}">{{halt['route']}}</a> |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
67 | </td> |
|
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
68 | <td class='sarake-määränpää'> |
|
48
428cfdf64ccc
Lisätty uudelleenohjauksia
Teemu Piippo <teemu@hecknology.net>
parents:
38
diff
changeset
|
69 | <a href="../trip/{{halt['trip']}}">{{halt['sign']}}</a> |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
70 | </td> |
|
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
71 | <td class='sarake-pysäkki'> |
|
48
428cfdf64ccc
Lisätty uudelleenohjauksia
Teemu Piippo <teemu@hecknology.net>
parents:
38
diff
changeset
|
72 | <a href="../stop/{{halt['stop_id']}}"><img src="../static/pysäkki.png" height="24" /> {{halt['stop_code']}}</a> |
|
19
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
73 | </td> |
|
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
74 | </tr> |
|
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
75 | {% endfor %} |
|
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
76 | </table> |
|
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
77 | </body> |
|
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
78 | </html> |