templates/route.html

Thu, 20 Dec 2018 23:11:07 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 20 Dec 2018 23:11:07 +0200
changeset 135
ca21302d1a74
parent 98
c07a77c8a070
permissions
-rw-r--r--

added Yli-maarian koulu

{% from "macros.html" import route_rep, bus_stop_rep %}
<html>
<head>
	<base href='..' />
	<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>
	<meta http-equiv='refresh' content='60'>
</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('trip-description', 'headings')}}</th>
		</tr>
		{% for stop, schedule in schedules.items() %}
		<thead>
		<tr>
			<td colspan='2'>{{bus_stop_rep(stop)}}</th>
		</tr>
		</thead>
		{% for trip in schedule %}
		<tr>
			<td>{{trip['time']}}</td>
			<td><a href="./trip/{{trip['name']}}">{{trip['description']}}</a></td>
		</tr>
		{% endfor %}
		{% endfor %}
	</table>
</body>
</html>

mercurial