From 823ff529039a3e7fa78080660bdd3804566405ae Mon Sep 17 00:00:00 2001 From: Dogfather Date: Fri, 31 Jul 2026 21:44:22 +0200 Subject: [PATCH] Ghost zeigt "Stufe Ghost" statt "Stufe 6" Neues optionales Feld rankLabel ueberschreibt nur die ANZEIGE der Stufe, die Sortierung laeuft weiter ueber rank. Wirkt auf team-modis.html und profil.html. Co-Authored-By: Claude Opus 5 --- assets/js/data-modis.js | 12 +++++++++--- profil.html | 2 +- team-modis.html | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/assets/js/data-modis.js b/assets/js/data-modis.js index 4f2f660..1affc01 100644 --- a/assets/js/data-modis.js +++ b/assets/js/data-modis.js @@ -13,10 +13,15 @@ eine eigene exklusive Seite (vanvan.html) — hier trotzdem gelistet, damit die Hierarchie an einer Stelle vollständig bleibt. + Feld "rankLabel" (optional): überschreibt NUR die ANZEIGE der Stufe + ("Stufe X"), die Sortierung läuft weiter über "rank". Genutzt bei + Ghost, der als Sonderfall keine Nummer, sondern seinen eigenen Namen + als Stufe zeigen soll ("Stufe Ghost" statt "Stufe 6"). + Felder: name, slug (eindeutig, für profil.html?p=slug), role, rank, - photo, avatar, bio (Vorstellungstext für die Profilseite), quote, - social, page (optionale EIGENE Unterseite statt der generischen - Profilseite — aktuell nur VanVan), status + rankLabel (optional), photo, avatar, bio (Vorstellungstext für die + Profilseite), quote, social, page (optionale EIGENE Unterseite statt + der generischen Profilseite — aktuell nur VanVan), status ===================================================================== */ const MODIS = [ @@ -105,6 +110,7 @@ const MODIS = [ // Auf dem Bild sind Ghost und seine Frau zu sehen (von Dogi ausdrücklich // freigegeben). Gezählt und vorgestellt wird hier ausschließlich Ghost. rank: 6, + rankLabel: "Ghost", // zeigt "Stufe Ghost" statt "Stufe 6" — Wunsch von Dogi photo: "assets/img/card-ghost.jpg", avatar: "assets/img/avatar-ghost.jpg", bio: "Ghost ist Teil von Team Dogi, aber privat für Dogi da — nicht für Stream- oder Community-Themen zuständig.", diff --git a/profil.html b/profil.html index 8fd4f05..3ac06b5 100644 --- a/profil.html +++ b/profil.html @@ -140,7 +140,7 @@ document.addEventListener("DOMContentLoaded", () => { if (person.rank) { const badge = document.getElementById("profil-badge"); - badge.textContent = `Stufe ${person.rank}`; + badge.textContent = `Stufe ${person.rankLabel || person.rank}`; badge.style.display = "inline-block"; } if (person.quote) { diff --git a/team-modis.html b/team-modis.html index a412a80..2d0212b 100644 --- a/team-modis.html +++ b/team-modis.html @@ -70,7 +70,7 @@ document.addEventListener("DOMContentLoaded", () => { grid.innerHTML = rest.map((m) => `
${(m.avatar || m.photo) ? `${m.name}` : `${m.name.charAt(0).toUpperCase()}`}
- Stufe ${m.rank} + Stufe ${m.rankLabel || m.rank}

${m.name}

${m.role}
Profil ansehen