diff weather_server/templates/location.html @ 26:7def5611895b

Add support for an index page displaying all locations. This seems as good a time as any to declare 0.1.0.
author Paul Fisher <paul@pfish.zone>
date Sun, 10 Nov 2019 23:46:51 -0500
parents 88249e451566
children 27217790dc04
line wrap: on
line diff
--- a/weather_server/templates/location.html	Sun Nov 10 23:43:37 2019 -0500
+++ b/weather_server/templates/location.html	Sun Nov 10 23:46:51 2019 -0500
@@ -10,8 +10,8 @@
             rel="shortcut icon"
             href="{{ url_for('static', filename='thermometer.png') }}">
     </head>
-    <body class="plain">
-        <h1><span>{{ location.name }} conditions</span></h1>
+    <body class="location plain">
+        <h1><span><a href="{{ url_for('home') }}">Weather</a>: {{ location.name }}</span></h1>
         {% if last_reading %}
             <p class="important" id="temp">
                 <span class="key">Temperature</span>