Display temp only if it exists

This commit is contained in:
Taylor Helsper 2019-12-05 21:41:34 -06:00
parent 3ce2692812
commit 90a1b1d5f0
2 changed files with 4 additions and 0 deletions

View File

@ -262,6 +262,7 @@
<div class="app_status"></div>
<div class="app_contents"><div class="drive_usage">{{ram_usage}}</div></div>
</div>
{% if device_temp != '...' %}
<div class="app_tile">
<div class="app_status_icon"></div>
<div class="app_logo"><img class="app_logo_icon" src="{{ url_for('static', filename="images/temperature.png")}}"/></div>
@ -269,6 +270,7 @@
<div class="app_status"></div>
<div class="app_contents"><div class="drive_usage">{{device_temp}} &deg;C</div></div>
</div>
{% endif %}
<!--
<div class="app_tile">
<div class="app_status_icon"></div>

View File

@ -394,10 +394,12 @@
<td>RAM</td>
<td style="padding-left: 20px;">{{ram_usage}}</td>
</tr>
{% if device_temp != '...' %}
<tr>
<td>Temperature</td>
<td style="padding-left: 20px;">{{device_temp}} &deg;C</td>
</tr>
{% endif %}
<tr>
<td>Uptime</td>
<td style="padding-left: 20px;">{{uptime}}</td>