templates/route.html

Tue, 01 May 2018 13:21:00 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 01 May 2018 13:21:00 +0300
changeset 94
e27c18f080d1
parent 48
428cfdf64ccc
child 98
c07a77c8a070
permissions
-rw-r--r--

added an interesting trip portal

<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>
	<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('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="../trip/{{trip['name']}}">{{trip['from']}}</a></td>
			<td><a href="../trip/{{trip['name']}}">{{trip['to']}}</a></td>
			<td><a href="../trip/{{trip['name']}}">{{trip['status']}}</a></td>
		</tr>
		{% endfor %}
	</table>
</body>
</html>

mercurial