From aba35eae1aa7b41719fa1fb6f43c622d06bc745c Mon Sep 17 00:00:00 2001
From: LarsVomMars
Date: Sun, 31 Jan 2021 01:36:25 +0100
Subject: SICKO MODE
---
overview/public/index.html | 1 +
overview/public/script.js | 5 +++++
2 files changed, 6 insertions(+)
(limited to 'overview')
diff --git a/overview/public/index.html b/overview/public/index.html
index 7a25653..1c3e681 100644
--- a/overview/public/index.html
+++ b/overview/public/index.html
@@ -18,6 +18,7 @@
+
Hallo, liebe RBS-Schüler*innen!
diff --git a/overview/public/script.js b/overview/public/script.js
index d7e5b71..3e56fc8 100644
--- a/overview/public/script.js
+++ b/overview/public/script.js
@@ -5,6 +5,7 @@ fetch("/auth/api/status")
const first = document.querySelectorAll("a")[0];
const second = document.querySelectorAll("a")[1];
const third = document.querySelectorAll("a")[2];
+ const fourth = document.querySelectorAll("a")[3];
if (!response.admin) third.style.display = "none";
@@ -17,6 +18,10 @@ fetch("/auth/api/status")
third.href = "/admin";
third.innerText = "Admin";
}
+ if (response.superAdmin) {
+ fourth.href = "/super";
+ fourth.textContent = "Super-Duper-Admin-Spaß";
+ }
} else {
document.querySelectorAll("div.pure-menu")[0].style.display = "none";
}
--
cgit v1.2.3