Tue, 20 Jun 2017 09:39:42 +0300
optimointia
| 
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> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
3 | <link rel="icon" type="image/png" href="/static/favicon.png" /> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
4 | <link rel="stylesheet" type="text/css" href="/static/style.css" /> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
5 | <meta charset='UTF-8' /> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
6 | <title>{{nimi}}</title> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
7 | <style> | 
| 21 | 8 | div.stops-in-cluster | 
| 9 | { | |
| 10 | margin-left: auto; | |
| 11 | margin-right: auto; | |
| 12 | } | |
| 13 | div.stops-in-cluster ul | |
| 14 | { | |
| 22 | 15 | columns: 2; | 
| 21 | 16 | } | 
| 22 | 17 | div.stops-in-cluster li | 
| 18 | { | |
| 19 | text-align: center; | |
| 20 | }/* | |
| 21 | body | |
| 22 | { | |
| 23 | background: url('/static/tausta-pysäkki.png') no-repeat center center fixed; | |
| 24 | background-size: cover; | |
| 25 | }*/ | |
| 
19
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
26 | </style> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
27 | </head> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
28 | <body> | 
| 21 | 29 | <h1><img src="/static/iso-pysäkki.png" height="96" /> <span>{{nimi}}</span></h1> | 
| 
19
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
30 | <p id="pysäkki-info"> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
31 | <a class="pysäkki-sijainti" href="{{linkki_karttaan}}" target="_blank">📌 ({{sijainti}})</a> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
32 | </p> | 
| 21 | 33 | <p>Pysäkit ryhmässä:</p> | 
| 34 | <div class="stops-in-cluster"> | |
| 35 | <ul> | |
| 36 | {% for stop in stops_in_cluster %} | |
| 37 | <li><a href="/pysäkki/{{stop['id']}}"><img src="/static/pysäkki.png" height="24" /> {{stop['id']}} {{stop['name']}}</a></li> | |
| 38 | {% endfor %} | |
| 39 | </ul> | |
| 40 | </div> | |
| 22 | 41 | <table class='aikataulu' cellspacing="0"> | 
| 
19
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
42 | <tr> | 
| 
20
 
3199e289ae62
- Sivusto hieman edustuksellisempi
 
Teemu Piippo <teemu@hecknology.net> 
parents: 
19 
diff
changeset
 | 
43 | <th class='sarake-aika'>{{tr('time', 'headings')}}</th> | 
| 
 
3199e289ae62
- Sivusto hieman edustuksellisempi
 
Teemu Piippo <teemu@hecknology.net> 
parents: 
19 
diff
changeset
 | 
44 | <th class='sarake-linja'>{{tr('route', 'headings')}}</th> | 
| 
 
3199e289ae62
- Sivusto hieman edustuksellisempi
 
Teemu Piippo <teemu@hecknology.net> 
parents: 
19 
diff
changeset
 | 
45 | <th class='sarake-määränpää'>{{tr('destination', 'headings')}}</th> | 
| 
 
3199e289ae62
- Sivusto hieman edustuksellisempi
 
Teemu Piippo <teemu@hecknology.net> 
parents: 
19 
diff
changeset
 | 
46 | <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
 | 
47 | </tr> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
48 | {% for rivi in aikataulu %} | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
49 | <tr class="{% if rivi['yö'] %} yö {% endif %}"> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
50 | <td class='sarake-aika'>{{rivi['aika']}}</td> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
51 | <td class='sarake-linja linja'> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
52 | <a href="/ajovuoro/{{rivi['ajovuoro']}}">{{rivi['linja']}}</a> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
53 | </td> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
54 | <td class='sarake-määränpää'> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
55 | <a href="/ajovuoro/{{rivi['ajovuoro']}}">{{rivi['kyltti']}}</a> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
56 | </td> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
57 | <td class='sarake-pysäkki'> | 
| 21 | 58 | <a href="/pysäkki/{{rivi['stop_id']}}"><img src="/static/pysäkki.png" height="24" /> {{rivi['stop_id']}}</a> | 
| 
19
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
59 | </td> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
60 | </tr> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
61 | {% endfor %} | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
62 | </table> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
63 | </body> | 
| 
 
16fa9fb20b32
Lisätty pysäkkiryhmän aikataulunäkymä
 
Teemu Piippo <teemu@hecknology.net> 
parents:  
diff
changeset
 | 
64 | </html> |