From f7d0cda73b7df2fccfbbdadef674b1fc05f669dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Tue, 26 Nov 2024 16:22:46 +0100 Subject: [PATCH] fix: update instance type references in HTML templates --- src/ui/templates/instances.html | 10 +++++----- src/ui/templates/logs.html | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ui/templates/instances.html b/src/ui/templates/instances.html index 0ecdeb92a..6c58245af 100644 --- a/src/ui/templates/instances.html +++ b/src/ui/templates/instances.html @@ -23,7 +23,7 @@
- {% set instance_details = [{"name" : "TYPE", "value" : instance['_type']},{"name" : "HOSTNAME", "value" : instance['hostname']}] %} + {% set instance_details = [{"name" : "TYPE", "value" : instance['instance_type']},{"name" : "HOSTNAME", "value" : instance['hostname']}] %} {% for detail in instance_details %}
@@ -36,7 +36,7 @@
- {% if instance._type == "local" and instance.health %} + {% if instance.instance_type == "local" and instance.health %} {% endif %} - {% if not instance._type == "local" and instance.health %} + {% if not instance.instance_type == "local" and instance.health %} {% endif %} - {% if instance._type == "local" and not instance.health or not - instance._type == "local" and not instance.health %} + {% if instance.instance_type == "local" and not instance.health or not + instance.instance_type == "local" and not instance.health %} {% endfor %}