aboutsummaryrefslogtreecommitdiff
path: root/overview/public
diff options
context:
space:
mode:
Diffstat (limited to 'overview/public')
-rw-r--r--overview/public/index.html1
-rw-r--r--overview/public/script.js5
2 files changed, 6 insertions, 0 deletions
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 @@
<a href="" class="pure-menu-item pure-menu-link"></a>
<a href="" class="pure-menu-item pure-menu-link"></a>
<a href="" class="pure-menu-item pure-menu-link"></a>
+ <a href="" class="pure-menu-item pure-menu-link"></a>
</div>
<div class="card">
<h2>Hallo, liebe RBS-Schüler*innen!</h2>
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";
}