fix paths

Thu, 13 Sep 2018 22:47:41 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 13 Sep 2018 22:47:41 +0300
changeset 118
24f5faf6237f
parent 117
e7174afc6121
child 119
f546e0d6df65

fix paths

templates/trip.html file | annotate | diff | comparison | revisions
--- a/templates/trip.html	Thu Sep 13 22:46:20 2018 +0300
+++ b/templates/trip.html	Thu Sep 13 22:47:41 2018 +0300
@@ -1,7 +1,8 @@
 <html>
 <head>
-	<link rel="icon" type="image/png" href="../static/favicon.png" />
-	<link rel="stylesheet" type="text/css" href="../static/style.css" />
+	<base href=".." />
+	<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'>-->
 	<link
@@ -119,8 +120,8 @@
 				{% for halt in entry['stops'] %}
 				<tr>
 					<td>{{halt['time']}}</td>
-					<td><a href="../stop/{{halt['id']}}"><img src="../static/{{halt['typename']}}.png" height='24' />&nbsp;{{halt['code']}}</a></td>
-					<td><a href="../stop/{{halt['id']}}">{{halt['name']}}</a></td>
+					<td><a href="stop/{{halt['id']}}"><img src="../static/{{halt['typename']}}.png" height='24' />&nbsp;{{halt['code']}}</a></td>
+					<td><a href="stop/{{halt['id']}}">{{halt['name']}}</a></td>
 				</tr>
 				{% endfor %}
 				</table>
@@ -196,7 +197,7 @@
 	title: "{{halt['ref']}} {{halt['name']}}",
 	_my_bus_stop_url: "/stop/{{halt['ref']}}",
 }).addTo(mymap);
-popupmsg = "<span class='popup'><h3><a href='/stop/{{halt['ref']}}'><span class='bus_stop_ref'>{{halt['ref']}}</span> {{halt['name']}}</a></h3>";
+popupmsg = "<span class='popup'><h3><a href='stop/{{halt['ref']}}'><span class='bus_stop_ref'>{{halt['ref']}}</span> {{halt['name']}}</a></h3>";
 	
 {% if halt['arrival_time'] != halt['departure_time'] %}
 	popupmsg += "<p><ul><li>Saapuu: {{halt['arrival_time']}}</li><li>Lähtee: {{halt['departure_time']}}</li></ul></p></span>";

mercurial