templates/pysäkki.html

changeset 25
cb423946cf33
parent 24
e6bdb9c54096
child 26
69cc75506d4f
--- a/templates/pysäkki.html	Tue Jun 20 10:27:52 2017 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-<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>{{nimi}}</title>
-	<style>
-	.sarake-määränpää
-	{
-		text-align: left;
-	}
-	</style>
-	{% if tausta %}
-	<style>
-	/*body
-	{
-		background: url('/{{tausta}}') no-repeat center center fixed;
-		background-size: cover;
-	}*/
-	</style>
-	{% endif %}
-</head>
-<body>
-	<h1><img src="/static/iso-pysäkki.png" height="96" /> <span>{{name}}</span></h1>
-	<p id="pysäkki-info">
-	{{region or ""}}
-	—
-	<a class="pysäkki-sijainti" href="{{linkki_karttaan}}" target="_blank">📌 ({{location}})</a>
-	</p>
-	{% if cluster %}
-	<p>
-	<a href="/pysäkkiryhmä/{{cluster}}">{{tr('nearby-area-schedule', 'misc-text')}}</a>
-	</p>
-	{% endif %}
-	<table class='aikataulu' cellspacing="0">
-		<tr>
-			<th class='sarake-aika'>{{tr('time', 'headings')}}</th>
-			<th class='sarake-linja'>{{tr('route', 'headings')}}</th>
-			<th class='sarake-määränpää'>{{tr('destination', 'headings')}}</th>
-		</tr>
-		{% for halt in schedule %}
-		<tr class="{% if halt['night'] %} yö {% endif %}">
-			<td class='sarake-aika'>{{halt['time']}}</td>
-			<td class='sarake-linja linja'>
-				<a href="/ajovuoro/{{halt['trip']}}">{{halt['route']}}</a>
-			</td>
-			<td class='sarake-määränpää'>
-				<a href="/ajovuoro/{{halt['trip']}}">{{halt['sign']}}</a>
-			</td>
-		</tr>
-		{% endfor %}
-	</table>
-</body>
-</html>

mercurial