templates/interesting.html

changeset 95
f49c984c8fa1
child 96
5acbf5a81383
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/interesting.html	Tue May 01 13:23:15 2018 +0300
@@ -0,0 +1,68 @@
+{% 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 %} yö {% 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