ui variable placeholders

This commit is contained in:
jrk 2024-04-29 19:03:15 +02:00
parent 9934a3261f
commit 1e30956983
3 changed files with 13 additions and 6 deletions

View File

@ -24,7 +24,7 @@ class Application:
def start(self) -> None:
self._web_server.run()
def signal_handler(self, signal, frame) -> None:
logging.info("Shutting down...")
self._stop_event.set()

View File

@ -0,0 +1 @@

View File

@ -35,14 +35,18 @@
<tr>
<td>{{ ro_variable.description }}</td>
<td>
{% if ro_variable.type.value == 'bool' %}
{% if ro_variable.display() %}
{% if ro_variable.value %}
{% if ro_variable.type.value == 'bool' %}
{% if ro_variable.display() %}
{% else %}
{% endif %}
{% else %}
{{ ro_variable.display() }}
{% endif %}
{% else %}
{{ ro_variable.display() }}
<span class="empty">{{ l.common_empty }}</span>
{% endif %}
</td>
</tr>
@ -55,6 +59,8 @@
{% elif env_value == false %}
{% elif env_value == none %}
<span class="empty">{{ l.common_empty }}</span>
{% else %}
{{ env_value }}
{% endif %}