From c935e705a279821092d30a11da113bcb76938a56 Mon Sep 17 00:00:00 2001 From: Kevin Reynolds Date: Mon, 29 Apr 2024 12:06:44 -0400 Subject: [PATCH] get all info from one place --- labapp/app/ce.py | 3 ++- labapp/app/templates/base.html | 37 +++++++++++++++++++++++++++------- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/labapp/app/ce.py b/labapp/app/ce.py index 62d5c8f..70c6c61 100644 --- a/labapp/app/ce.py +++ b/labapp/app/ce.py @@ -135,7 +135,8 @@ def get_ce_state(ce_info: dict) -> dict: ce_state = response.json()['state'] return { "err": False, - "state": ce_state + "state": ce_state, + "site_name": ce_info['site_name'] } else: raise Exception(e) diff --git a/labapp/app/templates/base.html b/labapp/app/templates/base.html index 8176e18..ed3b755 100644 --- a/labapp/app/templates/base.html +++ b/labapp/app/templates/base.html @@ -66,6 +66,7 @@ } return null; } + @@ -128,6 +129,35 @@ + + {% if udf %} + +
+ <

Status: Loading...

+
+ {% endif %} + @@ -137,13 +167,6 @@ {% endblock %} - - {% if udf %} -
-

Status: Active

-
- {% endif %} -