commit | author | age
|
c077c7
|
1 |
<!DOCTYPE html> |
JK |
2 |
<title>Vehicles on lines (TTSS-based)</title> |
|
3 |
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
|
4 |
|
|
5 |
<style type="text/css"> |
|
6 |
table { |
|
7 |
border-collapse: collapse; |
|
8 |
border-spacing: 0; |
51c6b4
|
9 |
margin: 10px 0; |
JK |
10 |
} |
|
11 |
caption { |
|
12 |
text-align: left; |
|
13 |
font-size: 120%; |
c077c7
|
14 |
} |
JK |
15 |
th, td { |
|
16 |
border: 1px solid black; |
|
17 |
padding: 5px; |
|
18 |
} |
|
19 |
td { |
|
20 |
vertical-align: top; |
51c6b4
|
21 |
} |
JK |
22 |
table.center td { |
c077c7
|
23 |
text-align: center; |
JK |
24 |
} |
|
25 |
a { |
|
26 |
text-decoration: none; |
|
27 |
} |
|
28 |
a:hover { |
|
29 |
text-decoration: underline; |
|
30 |
} |
|
31 |
.low { |
|
32 |
color: #000; |
|
33 |
} |
|
34 |
.low0 { |
|
35 |
color: #C70; |
|
36 |
} |
|
37 |
.low1, .low2 { |
|
38 |
color: #070; |
|
39 |
} |
|
40 |
</style> |
|
41 |
|
51c6b4
|
42 |
<table class="center"> |
JK |
43 |
<caption>Vehicles by line</caption> |
c077c7
|
44 |
<thead> |
JK |
45 |
<tr> |
|
46 |
{% for line in lines|keys %} |
|
47 |
<th>{{ line | e }}</th> |
|
48 |
{% endfor %} |
|
49 |
</tr> |
|
50 |
</thead> |
|
51 |
<tbody> |
|
52 |
<tr> |
|
53 |
{% for trips in lines %} |
|
54 |
<td> |
|
55 |
{% for trip in trips %} |
51c6b4
|
56 |
<a href="https://mpk.jacekk.net/map.html#!{{ prefix }}{{ trip.vehicle.trip | e }}" class="low{{ trip.vehicle.low | default }}"> |
c077c7
|
57 |
{{ trip.vehicle.num | default('<?>') | e }}<br /> |
JK |
58 |
</a> |
|
59 |
{% endfor %} |
|
60 |
</td> |
|
61 |
{% endfor %} |
|
62 |
</tr> |
|
63 |
</tbody> |
51c6b4
|
64 |
</table> |
JK |
65 |
|
|
66 |
<table> |
|
67 |
<caption>Vehicles by type</caption> |
|
68 |
{% for type, vhcls in vehicles %} |
|
69 |
<tr> |
|
70 |
<th>{{ type }}</th> |
|
71 |
<td>{{ vhcls | length }}</td> |
|
72 |
<td> |
|
73 |
{% for vehicle in vhcls %} |
|
74 |
<a href="https://mpk.jacekk.net/map.html#!{{ prefix }}{{ vehicle.trip | e }}" class="low{{ vehicle.low | default }}"> |
|
75 |
{{ vehicle.num | default('<?>') | e }} |
|
76 |
</a> |
|
77 |
{% endfor %} |
|
78 |
</td> |
|
79 |
</tr> |
|
80 |
{% endfor %} |
|
81 |
</table> |
c077c7
|
82 |
|
a3d091
|
83 |
Generated at {{ "now" | date("Y-m-d H:i:s P") }} |
JK |
84 |
|
c077c7
|
85 |
</table> |