conditional font colour rendering
This commit is contained in:
@ -87,8 +87,8 @@
|
|||||||
<div class="stack">
|
<div class="stack">
|
||||||
<img class="icon{% if not sbot_stats.memory %} icon-inactive{% endif %}" title="Memory" src="/icons/ram.png">
|
<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;">
|
<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-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 font-near-black">MB</label>
|
<label class="label-small {% if sbot_stats.state == "inactive" %}font-gray{% else %}font-near-black{% endif %}">MB</label>
|
||||||
</div>
|
</div>
|
||||||
<label class="label-small font-gray">MEMORY</label>
|
<label class="label-small font-gray">MEMORY</label>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user