Header: Doku-Links, Profil-Button & Titel "Kontrollverlust"

Impressum/Datenschutz/Beitragsordnung als Links ueber der Ueberschrift,
Ueberschrift in "Kontrollverlust" umbenannt (verlinkt auf den Feed),
"mein Profil" und "zurueck zum Feed" im Button-Layout. datenschutz.html
aus bb6b966 wiederhergestellt, damit der Link nicht ins Leere fuehrt.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-04 10:23:41 +02:00
parent 2160920595
commit 720d5d64d5
5 changed files with 226 additions and 9 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ async function refreshHeader() {
if (loggedIn) {
const me = await api.get("/user/info");
const user = encodeURIComponent(me.username);
bar.innerHTML = `<a href="/u/${user}">mein Profil</a> <button id="logout-btn">Logout</button>`;
bar.innerHTML = `<a class="button" href="/u/${user}">mein Profil</a> <button id="logout-btn">Logout</button>`;
document.getElementById("logout-btn").addEventListener("click", async () => {
await api.get("/auth/logout");
await refreshHeader();