Jacek Kowalski
2019-06-22 df2ceeed93732415b6067ff6ffa6e07224eef78e
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;
9 }
10 th, td {
11     border: 1px solid black;
12     padding: 5px;
13 }
14 td {
15     vertical-align: top;
16     text-align: center;
17 }
18 a {
19     text-decoration: none;
20 }
21 a:hover {
22     text-decoration: underline;
23 }
24 .low {
25     color: #000;
26 }
27 .low0 {
28     color: #C70;
29 }
30 .low1, .low2 {
31     color: #070;
32 }
33 </style>
34
35 <table>
36
37 <thead>
38 <tr>
39 {% for line in lines|keys %}
40 <th>{{ line | e }}</th>
41 {% endfor %}
42 </tr>
43 </thead>
44
45 <tbody>
46 <tr>
47 {% for trips in lines %}
48 <td>
49 {% for trip in trips %}
50 <a href="https://mpk.jacekk.net/map.html#!{{ prefix }}{{ trip.trip.id | e }}" class="low{{ trip.vehicle.low | default }}">
51 {{ trip.vehicle.num | default('<?>') | e }}<br />
52 </a>
53 {% endfor %}
54 </td>
55 {% endfor %}
56 </tr>
57 </tbody>
58
59 </table>