templates/route.html

changeset 98
c07a77c8a070
parent 48
428cfdf64ccc
equal deleted inserted replaced
97:6967657fced6 98:c07a77c8a070
1 {% from "macros.html" import route_rep, bus_stop_rep %}
1 <html> 2 <html>
2 <head> 3 <head>
4 <base href='..' />
3 <link rel="icon" type="image/png" href="../static/favicon.png" /> 5 <link rel="icon" type="image/png" href="../static/favicon.png" />
4 <link rel="stylesheet" type="text/css" href="../static/style.css" /> 6 <link rel="stylesheet" type="text/css" href="../static/style.css" />
5 <meta charset='UTF-8' /> 7 <meta charset='UTF-8' />
6 <title>{{name}}</title> 8 <title>{{name}}</title>
7 <meta http-equiv='refresh' content='60'> 9 <meta http-equiv='refresh' content='60'>
9 <body> 11 <body>
10 <h1><span>{{name}}</span></h1> 12 <h1><span>{{name}}</span></h1>
11 <table class='aikataulu' cellspacing="0"> 13 <table class='aikataulu' cellspacing="0">
12 <tr> 14 <tr>
13 <th class='sarake-aika'>{{tr('time', 'headings')}}</th> 15 <th class='sarake-aika'>{{tr('time', 'headings')}}</th>
14 <th class='sarake-lähtö'>{{tr('from', 'headings')}}</th> 16 <th class='sarake-lähtö'>{{tr('trip-description', 'headings')}}</th>
15 <th class='sarake-määränpää'>{{tr('destination', 'headings')}}</th>
16 <th class='sarake-status'>{{tr('status', 'headings')}}</th>
17 </tr> 17 </tr>
18 {% for stop, schedule in schedules.items() %}
19 <thead>
20 <tr>
21 <td colspan='2'>{{bus_stop_rep(stop)}}</th>
22 </tr>
23 </thead>
18 {% for trip in schedule %} 24 {% for trip in schedule %}
19 <tr> 25 <tr>
20 <td>{{trip['time']}}</td> 26 <td>{{trip['time']}}</td>
21 <td><a href="../trip/{{trip['name']}}">{{trip['from']}}</a></td> 27 <td><a href="./trip/{{trip['name']}}">{{trip['description']}}</a></td>
22 <td><a href="../trip/{{trip['name']}}">{{trip['to']}}</a></td>
23 <td><a href="../trip/{{trip['name']}}">{{trip['status']}}</a></td>
24 </tr> 28 </tr>
29 {% endfor %}
25 {% endfor %} 30 {% endfor %}
26 </table> 31 </table>
27 </body> 32 </body>
28 </html> 33 </html>

mercurial