From a048adef8e9ddab8203dd376ed3d6617441b8275 Mon Sep 17 00:00:00 2001 From: catborise Date: Wed, 28 Feb 2024 08:13:08 +0300 Subject: [PATCH] do not show warning message when instance is shutdown --- instances/templates/instances/settings_tab.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/instances/templates/instances/settings_tab.html b/instances/templates/instances/settings_tab.html index 0ea78d4..2031542 100644 --- a/instances/templates/instances/settings_tab.html +++ b/instances/templates/instances/settings_tab.html @@ -660,7 +660,9 @@
-

{% trans "If you need to edit XML please Power Off the instance" %}

+ {% if instance.status != 5 %} +

{% trans "If you need to edit XML please Power Off the instance" %}

+ {% endif %}
{% csrf_token %}