Fri, 19 May 2017 21:15:12 +0300
Äää
0 | 1 | <html> |
2 | <head> | |
3 | <meta charset='UTF-8' /> | |
4 | ||
5 | <style> | |
6 | body | |
7 | { | |
4 | 8 | font-family: "Oxygen-Sans", "Latin Modern Sans", Tahoma, FreeSans, Arial, sans-serif; |
0 | 9 | background: white; |
10 | color: black; | |
11 | margin: 0; | |
12 | padding: 0; | |
13 | font-size: 24pt; | |
14 | } | |
15 | a | |
16 | { | |
17 | color: inherit; | |
18 | text-decoration: none; | |
19 | } | |
20 | a:hover | |
21 | { | |
22 | text-decoration: underline; | |
23 | } | |
24 | h1 | |
25 | { | |
26 | padding-top: 10pt; | |
27 | padding-bottom: 10pt; | |
28 | text-align: center; | |
29 | background: #dc9e00; | |
30 | background: linear-gradient(to bottom, #dc9e00 0%,#eaaf19 49%,#dc9e00 92%,#906700 100%); | |
31 | color: white; | |
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-linja | |
48 | { | |
49 | width: 15%; | |
50 | } | |
51 | ||
52 | h1 | |
53 | { | |
54 | font-variant: small-caps; | |
55 | } | |
4 | 56 | |
57 | .yölinja | |
58 | { | |
59 | background-color: #AAF; | |
60 | color: #00A; | |
61 | padding-left: 6px; | |
62 | padding-right: 6px; | |
63 | border: 1px solid #00A; | |
64 | } | |
0 | 65 | </style> |
66 | <title>{{viite}} {{nimi}}</title> | |
67 | </head> | |
68 | <body> | |
69 | <h1>{{viite}} {{nimi}}</h1> | |
70 | <table id='aikataulu'> | |
71 | <tr> | |
72 | <th class='sarake-aika'>Aika</th> | |
73 | <th class='sarake-linja'>Linja</th> | |
74 | <th class='sarake-määränpää'>Määränpää</th> | |
75 | </tr> | |
76 | {% for rivi in aikataulu %} | |
77 | <tr> | |
78 | <td class='sarake-aika'>{{rivi['aika']}}</td> | |
79 | <td class='sarake-linja linja'> | |
4 | 80 | {% if rivi['yö'] %} |
81 | <span class="yölinja"> | |
82 | {% endif %} | |
0 | 83 | <a href="/ajovuoro/{{rivi['ajovuoro']}}">{{rivi['linja']}}</a> |
4 | 84 | {% if rivi['yö'] %} |
85 | </span> | |
86 | {% endif %} | |
0 | 87 | </td> |
88 | <td class='sarake-määränpää'> | |
89 | <a href="/ajovuoro/{{rivi['ajovuoro']}}">{{rivi['kyltti']}}</a> | |
90 | </td> | |
91 | </tr> | |
92 | {% endfor %} | |
93 | </table> | |
94 | </body> | |
4 | 95 | </html> |