From 9aee37ab60ff71d241bb6ac7967fd0d3fca5f3ba Mon Sep 17 00:00:00 2001 From: Tomas Hlavacek Date: Wed, 1 Jan 2020 23:11:44 +0100 Subject: [PATCH] Mark the unreachable computes properly When a compute can not be connected (for whatever reason) mark it as not connected in the template. The generic check if compute.status is not enough because the status variable can contain a string with a connection error. --- computes/templates/computes.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/computes/templates/computes.html b/computes/templates/computes.html index a03b937..bbba6e8 100644 --- a/computes/templates/computes.html +++ b/computes/templates/computes.html @@ -17,7 +17,7 @@ {% if computes_info %} {% for compute in computes_info %}
-
+
{% ifequal compute.status 1 %}

@@ -40,11 +40,11 @@

{% trans "Status" %}:

- {% if compute.status %} + {% ifequal compute.status 1 %}

{% trans "Connected" %}

{% else %}

{% trans "Not Connected" %}

- {% endif %} + {% endifequal %} {% if compute.details %}

{% trans compute.details %}

{% else %}