comparison weather_server/templates/location.html @ 23:88249e451566

server: show date when last report was >12h ago.
author Paul Fisher <paul@pfish.zone>
date Sun, 10 Nov 2019 19:42:04 -0500
parents a7fe635d1c88
children 7def5611895b
comparison
equal deleted inserted replaced
22:e229afdd447b 23:88249e451566
34 </span> 34 </span>
35 </p> 35 </p>
36 <p id="timestamp"> 36 <p id="timestamp">
37 <span> 37 <span>
38 <span class="key">Reported</span> 38 <span class="key">Reported</span>
39 <span class="value">{{ "{:%H:%M}".format(date) }}</span> 39 <span class="value">
40 {{- "{date:{fmt}}".format(date=date, fmt=date_format) -}}
41 </span>
40 </span> 42 </span>
41 </p> 43 </p>
42 {% else %} 44 {% else %}
43 <p id="big-question-mark">?</p> 45 <p id="big-question-mark">?</p>
44 {% endif %} 46 {% endif %}