From 5c0f9bf5fb864c9fcace0896ea24bd6a5b5b2180 Mon Sep 17 00:00:00 2001
From: Bjarke Madsen <bjarke.madsen@geant.org>
Date: Thu, 28 Oct 2021 10:23:27 +0200
Subject: [PATCH] Add EUMETSAT dropdown and exclude for non-staff

---
 brian_dashboard_manager/config.py                   |  7 +++++--
 .../templating/templates/homedashboard.json.j2      | 13 +++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/brian_dashboard_manager/config.py b/brian_dashboard_manager/config.py
index 49d8a3a..4efcbca 100644
--- a/brian_dashboard_manager/config.py
+++ b/brian_dashboard_manager/config.py
@@ -51,7 +51,8 @@ DEFAULT_ORGANIZATIONS = [
             "Lab Devices"
         ],
         "excluded_folders": {
-            "Aggregates": ["CAE1"]
+            "Aggregates": ["CAE1"],
+            "EUMETSAT Multicast": True
         }
     },
     {
@@ -79,6 +80,7 @@ DEFAULT_ORGANIZATIONS = [
             "GWS PHY Upstream": True,
             "GWS Direct": True,
             "GWS Indirect": True,
+            "EUMETSAT Multicast": True
         }
     },
     {
@@ -95,7 +97,7 @@ DEFAULT_ORGANIZATIONS = [
             "Lab Devices",
         ],
         "excluded_folders": {
-
+            "EUMETSAT Multicast": True
         }
     },
     {
@@ -121,6 +123,7 @@ DEFAULT_ORGANIZATIONS = [
             "IAS PUBLIC": True,
             "IAS UPSTREAM": True,
             "GWS PHY Upstream": True,
+            "EUMETSAT Multicast": True
         }
     }
 ]
diff --git a/brian_dashboard_manager/templating/templates/homedashboard.json.j2 b/brian_dashboard_manager/templating/templates/homedashboard.json.j2
index c23ae3a..a40c8e7 100644
--- a/brian_dashboard_manager/templating/templates/homedashboard.json.j2
+++ b/brian_dashboard_manager/templating/templates/homedashboard.json.j2
@@ -59,6 +59,19 @@
       "title": "Peers",
       "type": "dashboards"
     }
+    {% if staff %}
+    ,
+    {
+      "asDropdown": true,
+      "icon": "external link",
+      "tags": [
+        "EUMET_MULTICAST"
+      ],
+      "targetBlank": true,
+      "title": "EUMETSAT",
+      "type": "dashboards"
+    }
+    {% endif %}
   ],
   "panels": [
     {% if staff %}
-- 
GitLab