conditional font colour rendering

This commit is contained in:
glyph 2022-01-26 12:10:28 +02:00
parent e718889485
commit abda4373ae
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@
<div class="stack">
<img class="icon{% if not sbot_stats.memory %} icon-inactive{% endif %}" title="Memory" src="/icons/ram.png">
<div class="flex-grid" style="padding-top: 0.5rem;">
<label class="label-medium" style="padding-right: 3px;" title="Memory usage of the go-sbot process in MB">{{ mem }}</label>
<label class="label-small font-near-black">MB</label>
<label class="label-medium{% if sbot_stats.state == "inactive" %} font-gray{% endif %}" style="padding-right: 3px;" title="Memory usage of the go-sbot process in MB">{{ mem }}</label>
<label class="label-small {% if sbot_stats.state == "inactive" %}font-gray{% else %}font-near-black{% endif %}">MB</label>
</div>
<label class="label-small font-gray">MEMORY</label>
</div>