templates/stop_week.html

Tue, 01 May 2018 13:24:33 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 01 May 2018 13:24:33 +0300
changeset 97
6967657fced6
parent 92
16a5c37e4e67
child 109
88a5110b66ba
permissions
-rw-r--r--

fix paths

78
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
1 {% from "macros.html" import route_rep %}
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
2 <html>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
3 <head>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
4 <link rel="icon" type="image/png" href="../static/favicon.png" />
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
5 <link rel="stylesheet" type="text/css" href="../static/style.css" />
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
6 <meta charset='UTF-8' />
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
7 <title>{{name}}</title>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
8 <style>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
9 .minute-time
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
10 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
11 font-weight: bold;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
12 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
13
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
14 td.minute-time
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
15 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
16 width: 20pt;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
17 text-align: right;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
18 border-left: 1px solid gray;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
19 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
20
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
21 td.minute-route
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
22 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
23 width: 0;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
24 margin: 0;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
25 padding-left: 0;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
26 padding-right: 3pt;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
27 text-align: left;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
28 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
29 .minute-route span
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
30 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
31 font-size: 75%;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
32 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
33
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
34 .hour-column
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
35 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
36 width: 20pt;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
37 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
38
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
39 /*
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
40 * Working days
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
41 */
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
42 tr.working-day td.minute-time
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
43 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
44 border-left: 1px solid #0f2e4d;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
45 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
46
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
47 .aikataulu tr.working-day td, .aikataulu tr.working-day th
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
48 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
49 border-top: 1px solid #0f2e4d;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
50 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
51
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
52 .aikataulu tr.working-day
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
53 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
54 background-color: #adcae6;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
55 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
56
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
57 .aikataulu tbody tr.working-day:nth-child(even)
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
58 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
59 background-color: #8fa7bf;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
60 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
61
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
62 .aikataulu tr.working-day.night
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
63 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
64 background-color: #1f2933;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
65 color: white;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
66 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
67
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
68 .aikataulu tbody tr.working-day.night:nth-child(even)
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
69 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
70 background-color: #2f3e4d;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
71 color: white;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
72 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
73
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
74 /*
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
75 * Satuday
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
76 */
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
77 tr.saturday td.minute-time
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
78 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
79 border-left: 1px solid #194d0f;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
80 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
81
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
82 .aikataulu tr.saturday td, .aikataulu tr.saturday th
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
83 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
84 border-top: 1px solid #194d0f;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
85 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
86
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
87 .aikataulu tr.saturday
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
88 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
89 background-color: #b6e6ad;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
90 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
91
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
92 .aikataulu tbody tr.saturday:nth-child(even)
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
93 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
94 background-color: #97bf8f;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
95 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
96
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
97 .aikataulu tr.saturday.night
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
98 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
99 background-color: #30402d;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
100 color: white;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
101 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
102
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
103 .aikataulu tbody tr.saturday.night:nth-child(even)
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
104 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
105 background-color: #4c6647;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
106 color: white;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
107 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
108
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
109 /*
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
110 * Sunday
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
111 */
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
112 tr.sunday td.minute-time
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
113 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
114 border-left: 1px solid #4d132d;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
115 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
116
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
117 .aikataulu tr.sunday td, .aikataulu tr.sunday th
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
118 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
119 border-top: 1px solid #4d132d;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
120 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
121
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
122 .aikataulu tr.sunday
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
123 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
124 background-color: #e68ab8;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
125 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
126
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
127 .aikataulu tbody tr.sunday:nth-child(even)
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
128 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
129 background-color: #bf7399;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
130 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
131
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
132 .aikataulu tr.sunday.night
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
133 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
134 background-color: #4d2e3d;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
135 color: white;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
136 }
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
137
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
138 .aikataulu tbody tr.sunday.night:nth-child(even)
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
139 {
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
140 background-color: #331f29;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
141 color: white;
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
142 }
87
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
143
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
144 .routes-legend .route
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
145 {
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
146 font-weight: bold
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
147 }
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
148
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
149 .routes-legend .night-route
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
150 {
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
151 color: blue
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
152 }
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
153
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
154 .routes-legend
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
155 {
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
156 border-spacing: 0px;
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
157 border-collapse: separate;
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
158 width: 100%;
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
159 border: 1px solid rgba(0, 0, 0, 0.2);
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
160 }
92
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
161
87
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
162 .routes-legend tr
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
163 {
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
164 width: 100%;
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
165 }
92
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
166
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
167 .routes-legend .rare-group td
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
168 {
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
169 padding-top: 5px;
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
170 padding-bottom: 5px;
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
171 }
87
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
172
92
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
173 .rare-group .routes:before, .common-route-group .rare-route-variant:before
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
174 {
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
175 content: "(";
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
176 }
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
177
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
178 .rare-group .routes:after, .common-route-group .rare-route-variant:after
87
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
179 {
92
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
180 content: ")";
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
181 }
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
182
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
183 .rare-group td, .common-route-group .rare-route-variant
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
184 {
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
185 font-size: 15pt;
87
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
186 }
78
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
187 </style>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
188 </head>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
189 {% macro night_class(hour) %}
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
190 {% if hour < 5 or hour >= 23 %}
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
191 night
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
192 {% endif %}
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
193 {% endmacro %}
87
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
194
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
195 {% macro all_night_routes(entry, description) %}
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
196 {% if description['all-night-routes'](entry, description) %}
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
197 night-route
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
198 {% endif %}
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
199 {% endmacro %}
78
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
200 <body>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
201 <table class='aikataulu' cellspacing="0">
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
202 <thead>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
203 <tr>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
204 <th colspan='100' class='primary-heading'>
90
Teemu Piippo <teemu@hecknology.net>
parents: 87
diff changeset
205 <span><img src="../static/{{typename}}.png" height="96" /> {{ref}} {{name}}</span>
78
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
206 </th>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
207 </tr>
87
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
208 <tr>
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
209 <td colspan='100'>
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
210 <table class='routes-legend'>
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
211 {% for entry in description['description'] %}
92
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
212 <tr class="{{entry[0] in description['rare-variant-groups'] and 'rare-group' or 'common-route-group'}}">
87
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
213 <td>
92
16a5c37e4e67 stop_week now shows rare variants with less emphasis
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
214 <span class='routes'>{% for route in entry[0] %}<span class="route {{route in description['night-routes'] and 'night-route' or ''}} {{route in description['rare-variants'] and 'rare-route-variant' or ''}}">{{ route }}</span>{{ route != entry[0][-1] and ' ' or '' }}{% endfor %}</span>
87
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
215 </td>
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
216 <td class="{{all_night_routes(entry, description)}} description">{{ entry[1] }}</td>
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
217 </tr>
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
218 {% endfor %}
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
219 </table>
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
220 </td>
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
221 </tr>
78
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
222 </thead>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
223 <tbody>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
224 {% for day in week %}
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
225 <tr class='{{day["day-class"]}}'>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
226 <th colspan='100'>{{day['day'].strftime('%a %e.%m.')}}</th>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
227 </tr>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
228 {% for hour, hour_schedule in day['schedule'].items() %}
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
229 <tr class='{{day["day-class"]}} {{night_class(hour)}}'>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
230 <th class='hour-column {{night_class(hour)}}'>{{hour}}</th>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
231 {% for entry in hour_schedule %}
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
232 <td class='minute-time'><span>{{'%02d' % entry['minute']}}</span></td>
87
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
233 {% if not description['simple'] %}
78
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
234 <td class='minute-route'><span>{{entry['route']}}</span></td>
87
9139a94e540c updates
Teemu Piippo <teemu@hecknology.net>
parents: 78
diff changeset
235 {% endif %}
78
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
236 {% endfor %}
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
237 </tr>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
238 {% endfor %}
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
239 {% endfor %}
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
240 </tbody>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
241 </table>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
242 </body>
ead971f9569c add missing files
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
243 </html>

mercurial