From 21011751faba37cb4fdde19249c7a03671d56a6a Mon Sep 17 00:00:00 2001
From: Bjarke Madsen <bjarke.madsen@geant.org>
Date: Mon, 12 Apr 2021 13:23:18 +0200
Subject: [PATCH] Home dashboard GEANT logo for non-staff

---
 .../templates/homedashboard.json.j2           | 120 +++++++-----------
 1 file changed, 49 insertions(+), 71 deletions(-)

diff --git a/brian_dashboard_manager/templating/templates/homedashboard.json.j2 b/brian_dashboard_manager/templating/templates/homedashboard.json.j2
index 7e2b37a..3ab6d5d 100644
--- a/brian_dashboard_manager/templating/templates/homedashboard.json.j2
+++ b/brian_dashboard_manager/templating/templates/homedashboard.json.j2
@@ -640,88 +640,66 @@
     }
     {% else %}
     {
-      "datasource": "PollerInfluxDB",
+      "datasource": null,
       "fieldConfig": {
-        "defaults": {
-          "custom": {
-            "align": null,
-            "filterable": false
+          "defaults": {
+              "custom": {}
           },
-          "mappings": [],
-          "thresholds": {
-            "mode": "absolute",
-            "steps": [
-              {
-                "color": "green",
-                "value": null
-              },
-              {
-                "color": "red",
-                "value": 80
-              }
-            ]
-          }
-        },
-        "overrides": []
+          "overrides": []
       },
-      "folderId": null,
       "gridPos": {
-        "h": 24,
-        "w": 24,
-        "x": 0,
-        "y": 0
+          "h": 11,
+          "w": 6,
+          "x": 9,
+          "y": 0
       },
-      "headings": true,
-      "id": 2,
-      "limit": 100,
-      "pluginVersion": "7.2.1",
-      "query": "",
-      "recent": false,
-      "repeat": null,
-      "search": true,
-      "starred": true,
-      "tags": [],
+      "id": 4,
+      "options": {
+          "content": "<center><img src=\"https://connect.geant.org/wp-content/uploads/2021/04/geant_logo.png\" alt=\"GEANT Logo\" height=\"308\" width=\"616\"></center>",
+          "mode": "html"
+      },
+      "pluginVersion": "7.1.0",
       "targets": [
-        {
-          "groupBy": [
-            {
-              "params": [
-                "$__interval"
+          {
+              "groupBy": [
+                  {
+                      "params": [
+                          "$__interval"
+                      ],
+                      "type": "time"
+                  },
+                  {
+                      "params": [
+                          "null"
+                      ],
+                      "type": "fill"
+                  }
               ],
-              "type": "time"
-            },
-            {
-              "params": [
-                "null"
+              "orderByTime": "ASC",
+              "policy": "default",
+              "refId": "A",
+              "resultFormat": "time_series",
+              "select": [
+                  [
+                      {
+                          "params": [
+                              "value"
+                          ],
+                          "type": "field"
+                      },
+                      {
+                          "params": [],
+                          "type": "mean"
+                      }
+                  ]
               ],
-              "type": "fill"
-            }
-          ],
-          "orderByTime": "ASC",
-          "policy": "default",
-          "refId": "A",
-          "resultFormat": "time_series",
-          "select": [
-            [
-              {
-                "params": [
-                  "value"
-                ],
-                "type": "field"
-              },
-              {
-                "params": [],
-                "type": "mean"
-              }
-            ]
-          ],
-          "tags": []
-        }
+              "tags": []
+          }
       ],
       "timeFrom": null,
       "timeShift": null,
-      "title": "Dashboards",
-      "type": "dashlist"
+      "title": "BRIAN",
+      "type": "text"
     }
     {% endif %}
   ],
-- 
GitLab