--- 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' /> {{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' /> {{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>";