comparison weather_server/templates/location.html @ 2:cda47993a193

server: fix bugs and improve template.
author Paul Fisher <paul@pfish.zone>
date Sun, 29 Sep 2019 01:18:18 -0400
parents f66df122f18d
children d54155a199d8
comparison
equal deleted inserted replaced
1:f66df122f18d 2:cda47993a193
4 <title>Weather for {{ location.name }}</title> 4 <title>Weather for {{ location.name }}</title>
5 </head> 5 </head>
6 <body> 6 <body>
7 {% if last_reading %} 7 {% if last_reading %}
8 Temperature: {{ last_reading.temp_f }}<br> 8 Temperature: {{ last_reading.temp_f }}<br>
9 Dew point: {{ last_reading.dew_point_f }} 9 Dew point: {{ last_reading.dew_point_f }}<br>
10 As of: {{ date }}
10 {% else %} 11 {% else %}
11 No weather yet 12 No weather yet
12 {% endif %} 13 {% endif %}
13 </body> 14 </body>
14 </html> 15 </html>