templates/interesting.html

Thu, 13 Sep 2018 21:34:49 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 13 Sep 2018 21:34:49 +0300
changeset 115
9452b9ac69e6
parent 98
c07a77c8a070
permissions
-rw-r--r--

use https

{% from "macros.html" import route_rep, bus_stop_rep %}
<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>{{tr('interesting', 'headings')}}</title>
	<!-- <meta http-equiv='refresh' content='60'> -->
	<style>
	.sarake-määränpää, .sarake-pysäkki
	{
		text-align: left;
	}
	.sarake-linja
	{
		font-weight: bold;
	}
	</style>
</head>
<body>
	<table class='aikataulu service-{{service}}' cellspacing="0">
	<thead>
		<tr>
			<th colspan='4' class='primary-heading'>
			<span>{{tr('interesting', 'headings')}}</span>
			</th>
		</tr>
	</thead>
	{% for day_data in data %}
	<thead>
		<tr class='headings'>
			<th colspan='4'>
			{{day_data['date'].strftime('%A %e. %B %Y')}}
			<th>
		</tr>
		<tr class='headings'>
			<th>{{tr('time', 'headings')}}</th>
			<th>{{tr('start-bus-stop', 'headings')}}</th>
			<th>{{tr('route', 'headings')}}</th>
			<th>{{tr('trip-description', 'headings')}}</th>
		</tr>
	</thead>
	<tbody>
	{% for entry in day_data['leaves'] %}
		<tr class="{% if False %}{% endif %}">
			<td class='sarake-aika'>
				{{entry['departure'].strftime('%H:%M')}}</td>
			<td class='sarake-pysäkki'>
				{{bus_stop_rep(entry['stop'])}}
			</td>
			<td class='sarake-linja linja'>
				<a href="./trip/{{entry['trip']}}">{{entry['route']}}</a>
			</td>
			<td class='sarake-määränpää' colspan='2'>
				<a href="./trip/{{entry['trip']}}">{{entry['description']}}</a>
			</td>
		</tr>
	{% endfor %}
	</tbody>
	{% endfor %}
	</table>
</body>
</html>

mercurial