Ääh

Wed, 28 Jun 2017 15:55:39 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 28 Jun 2017 15:55:39 +0300
changeset 35
8ed8f8be7a07
parent 34
d1b88561afdf
child 36
728965530259

Ääh

templates/cluster.html file | annotate | diff | comparison | revisions
templates/route.html file | annotate | diff | comparison | revisions
templates/stop.html file | annotate | diff | comparison | revisions
templates/trip.html file | annotate | diff | comparison | revisions
--- a/templates/cluster.html	Wed Jun 28 15:53:05 2017 +0300
+++ b/templates/cluster.html	Wed Jun 28 15:55:39 2017 +0300
@@ -1,7 +1,7 @@
 <html>
 <head>
-	<link rel="icon" type="image/png" href="static/favicon.png" />
-	<link rel="stylesheet" type="text/css" href="static/style.css" />
+	<link rel="icon" type="image/png" href="../static/favicon.png" />
+	<link rel="stylesheet" type="text/css" href="../static/style.css" />
 	<meta charset='UTF-8' />
 	<meta http-equiv='refresh' content='60'>
 	<title>{{name}}</title>
@@ -36,14 +36,14 @@
 	</style>
 </head>
 <body>
-	<h1><img src="static/pysäkki.png" height="96" /> <span>{{name}}</span></h1>
+	<h1><img src="../static/pysäkki.png" height="96" /> <span>{{name}}</span></h1>
 	<p id="pysäkki-info">
 		<a class="pysäkki-sijainti" href="{{link_to_map}}" target="_blank">📌 ({{location}})</a>
 	</p>
 	<div class="stops-in-cluster">
 	<ul>
 	{% for stop in stops_in_cluster %}
-		<li><a href="pysäkki/{{stop['id']}}"><img src="static/pysäkki.png" height="24" /> {{stop['code']}} {{stop['name']}}</a></li>
+		<li><a href="../pysäkki/{{stop['id']}}"><img src="../static/pysäkki.png" height="24" /> {{stop['code']}} {{stop['name']}}</a></li>
 	{% endfor %}
 	</ul>
 	</div>
@@ -58,13 +58,13 @@
 		<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>
+				<a href="../ajovuoro/{{halt['trip']}}">{{halt['route']}}</a>
 			</td>
 			<td class='sarake-määränpää'>
-				<a href="ajovuoro/{{halt['trip']}}">{{halt['sign']}}</a>
+				<a href="../ajovuoro/{{halt['trip']}}">{{halt['sign']}}</a>
 			</td>
 			<td class='sarake-pysäkki'>
-				<a href="pysäkki/{{halt['stop_id']}}"><img src="static/pysäkki.png" height="24" /> {{halt['stop_code']}}</a>
+				<a href="../pysäkki/{{halt['stop_id']}}"><img src="../static/pysäkki.png" height="24" /> {{halt['stop_code']}}</a>
 			</td>
 		</tr>
 		{% endfor %}
--- a/templates/route.html	Wed Jun 28 15:53:05 2017 +0300
+++ b/templates/route.html	Wed Jun 28 15:55:39 2017 +0300
@@ -1,7 +1,7 @@
 <html>
 <head>
-	<link rel="icon" type="image/png" href="static/favicon.png" />
-	<link rel="stylesheet" type="text/css" href="static/style.css" />
+	<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'>
@@ -18,9 +18,9 @@
 		{% for trip in schedule %}
 		<tr>
 			<td>{{trip['time']}}</td>
-			<td><a href="ajovuoro/{{trip['name']}}">{{trip['from']}}</a></td>
-			<td><a href="ajovuoro/{{trip['name']}}">{{trip['to']}}</a></td>
-			<td><a href="ajovuoro/{{trip['name']}}">{{trip['status']}}</a></td>
+			<td><a href="../ajovuoro/{{trip['name']}}">{{trip['from']}}</a></td>
+			<td><a href="../ajovuoro/{{trip['name']}}">{{trip['to']}}</a></td>
+			<td><a href="../ajovuoro/{{trip['name']}}">{{trip['status']}}</a></td>
 		</tr>
 		{% endfor %}
 	</table>
--- a/templates/stop.html	Wed Jun 28 15:53:05 2017 +0300
+++ b/templates/stop.html	Wed Jun 28 15:55:39 2017 +0300
@@ -1,7 +1,7 @@
 <html>
 <head>
-	<link rel="icon" type="image/png" href="static/favicon.png" />
-	<link rel="stylesheet" type="text/css" href="static/style.css" />
+	<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'>
@@ -22,7 +22,7 @@
 	{% endif %}
 </head>
 <body>
-	<h1><img src="static/pysäkki.png" height="96" /> <span>{{name}}</span></h1>
+	<h1><img src="../static/pysäkki.png" height="96" /> <span>{{name}}</span></h1>
 	<p id="pysäkki-info">
 	{{region or ""}}

@@ -30,7 +30,7 @@
 	</p>
 	{% if cluster %}
 	<p>
-	<a href="pysäkkiryhmä/{{cluster}}">{{tr('nearby-area-schedule', 'misc-text')}}</a>
+	<a href="../pysäkkiryhmä/{{cluster}}">{{tr('nearby-area-schedule', 'misc-text')}}</a>
 	</p>
 	{% endif %}
 	<table class='aikataulu' cellspacing="0">
@@ -43,10 +43,10 @@
 		<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>
+				<a href="../ajovuoro/{{halt['trip']}}">{{halt['route']}}</a>
 			</td>
 			<td class='sarake-määränpää'>
-				<a href="ajovuoro/{{halt['trip']}}">{{halt['sign']}}</a>
+				<a href="../ajovuoro/{{halt['trip']}}">{{halt['sign']}}</a>
 			</td>
 		</tr>
 		{% endfor %}
--- a/templates/trip.html	Wed Jun 28 15:53:05 2017 +0300
+++ b/templates/trip.html	Wed Jun 28 15:55:39 2017 +0300
@@ -1,7 +1,7 @@
 <html>
 <head>
-	<link rel="icon" type="image/png" href="static/favicon.png" />
-	<link rel="stylesheet" type="text/css" href="static/style.css" />
+	<link rel="icon" type="image/png" href="../static/favicon.png" />
+	<link rel="stylesheet" type="text/css" href="../static/style.css" />
 	<meta charset='UTF-8' />
 	<meta http-equiv='refresh' content='60'>
 	<style>
@@ -67,8 +67,8 @@
 				{% for halt in entry['stops'] %}
 				<tr>
 					<td>{{halt['time']}}</td>
-					<td><a href="pysäkki/{{halt['id']}}"><img src='static/pysäkki.png' height='24' />&nbsp;{{halt['code']}}</a></td>
-					<td><a href="pysäkki/{{halt['id']}}">{{halt['name']}}</a></td>
+					<td><a href="../pysäkki/{{halt['id']}}"><img src='/static/pysäkki.png' height='24' />&nbsp;{{halt['code']}}</a></td>
+					<td><a href="../pysäkki/{{halt['id']}}">{{halt['name']}}</a></td>
 				</tr>
 				{% endfor %}
 				</table>

mercurial