--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/route.html Thu Jun 22 19:01:31 2017 +0300 @@ -0,0 +1,27 @@ +<html> +<head> + <link rel="icon" type="image/png" href="/static/favicon.png" /> + <link rel="stylesheet" type="text/css" href="/static/style.css" /> + <meta charset='UTF-8' /> + <title>{{name}}</title> +</head> +<body> + <h1><span>{{name}}</span></h1> + <table class='aikataulu' cellspacing="0"> + <tr> + <th class='sarake-aika'>{{tr('time', 'headings')}}</th> + <th class='sarake-lähtö'>{{tr('from', 'headings')}}</th> + <th class='sarake-määränpää'>{{tr('destination', 'headings')}}</th> + <th class='sarake-status'>{{tr('status', 'headings')}}</th> + </tr> + {% for trip in schedule %} + <tr> + <td>{{trip['time']}}</td> + <td><a href="/ajovuoro/{{trip['name']}}">{{trip['from']}}</a></td> + <td><a href="/ajovuoro/{{trip['name']}}">{{trip['to']}}</a></td> + <td><a href="/ajovuoro/{{trip['name']}}">{{trip['status']}}</a></td> + </tr> + {% endfor %} + </table> +</body> +</html>