Sat, 10 Jun 2017 17:00:53 +0300
Refaktoroitu käännä-funktio, kaikki kielet luetaan automaattisesti
0 | 1 | <html> |
2 | <head> | |
3 | <meta charset='UTF-8' /> | |
4 | ||
5 | <style> | |
6 | body | |
7 | { | |
4 | 8 | font-family: "Oxygen-Sans", FreeSans, Arial, sans-serif; |
0 | 9 | background: white; |
10 | color: black; | |
11 | margin: 0; | |
12 | padding: 0; | |
13 | font-size: 24pt; | |
14 | } | |
15 | h1 | |
16 | { | |
17 | padding-top: 10pt; | |
18 | padding-bottom: 10pt; | |
19 | text-align: center; | |
20 | background: #dc9e00; | |
21 | background: linear-gradient(to bottom, #dc9e00 0%,#eaaf19 49%,#dc9e00 92%,#906700 100%); | |
22 | color: white; | |
23 | } | |
24 | a | |
25 | { | |
26 | color: inherit; | |
27 | text-decoration: none; | |
28 | } | |
29 | a:hover | |
30 | { | |
31 | text-decoration: underline; | |
32 | } | |
33 | #aikataulu | |
34 | { | |
35 | width:100%; | |
36 | margin: auto; | |
37 | } | |
38 | #aikataulu td | |
39 | { | |
40 | text-align: center; | |
41 | } | |
42 | td, th, body | |
43 | { | |
44 | font-size: 24pt; | |
45 | } | |
46 | ||
47 | .sarake-aika, .sarake-tunniste | |
48 | { | |
49 | width: 15%; | |
50 | } | |
51 | ||
52 | h1 | |
53 | { | |
54 | font-variant: small-caps; | |
55 | } | |
56 | </style> | |
4 | 57 | <!--<title>Ajovuoro #{{numero}}: {{linja}} {{selite}}</title>--> |
58 | <title>{{linja}} {{selite}}</title> | |
0 | 59 | </head> |
60 | <body> | |
4 | 61 | <h1> |
62 | {% if yö %} | |
63 | 🌙 | |
64 | {% endif %} | |
65 | <!--Ajo {{numero}}: -->{{linja}} {{selite}}</h1> | |
0 | 66 | <table id='aikataulu'> |
67 | <tr> | |
68 | <th class='sarake-aika'>Aika</th> | |
69 | <th class='sarake-linja'>Viite</th> | |
2 | 70 | <th class='sarake-nimi'>Nimi</th> |
71 | <th class='sarake-alue'>Alue</th> | |
0 | 72 | </tr> |
73 | {% for rivi in reitti %} | |
74 | <tr> | |
75 | <td class='sarake-aika'>{{rivi['aika']}}</td> | |
76 | <td class='sarake-tunniste'> | |
77 | <a href="/pysäkki/{{rivi['tunniste']}}">{{rivi['tunniste']}}</a> | |
78 | </td> | |
79 | <td class='sarake-nimi'> | |
80 | <a href="/pysäkki/{{rivi['tunniste']}}">{{rivi['nimi']}}</a> | |
81 | </td> | |
2 | 82 | <td class='sarake-alue'> |
83 | {{rivi['alue'] or ''}} | |
84 | </td> | |
0 | 85 | </tr> |
86 | {% endfor %} | |
87 | </table> | |
88 | </body> | |
4 | 89 | </html> |