]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/templates/seepark_web.html
Move formatting water temperature/time to template.
[chrisu/seepark.git] / web / templates / seepark_web.html
index fd75b467b877d5f5904620bf62cda83024a6b21c..3fed3e96b29c35ba9a977f741fbaef9534ac978e 100644 (file)
                <h2>Aktuelle Werte</h2>
                <div id="current">
                <p id="currentair">
-                       <strong>Luft: {{ airvalue }}°C</strong><br />
-                       <small>({{ airtime }})</small>
+                       {% if airvalue is none %}
+                       <strong>Luft: N/A</strong>
+                       {% else %}
+                       <strong>Luft: {{ airvalue|round(1) }}°C</strong><br />
+                       <small>({{ airtime.strftime('%Y-%m-%d %H:%M') }})</small>
+                       {% endif %}
                </p>
                <p id="currentwater">
-                       <strong>Wasser: {{ watervalue }}°C</strong><br />
-                       <small>({{ watertime }})</small>
+                       <strong>Wasser: {{ watervalue|round(1) }}°C</strong><br />
+                       <small>({{ watertime.strftime('%Y-%m-%d %H:%M') }})</small>
                </p>
                </div>