templates/interesting.html

Tue, 01 May 2018 13:23:15 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 01 May 2018 13:23:15 +0300
changeset 95
f49c984c8fa1
child 96
5acbf5a81383
permissions
-rw-r--r--

added a file

{% from "macros.html" import route_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, .stop-code
	{
		font-weight: bold;
	}
	.stop-name
	{
		font-size: 75%;
		/*font-style: italic;*/
	}
	</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'>
				<a href="../stop/{{entry['stop'].code}}"><img src="../static/{{entry['stop'].typename}}.png" height="24" /> <span class='stop-code'>{{entry['stop'].code}} </span><br /><span class='stop-name'>{{entry['stop'].name}}</span></a>
			</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