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 <[email protected]>
This commit is contained in:
@@ -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.",
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
grid.innerHTML = rest.map((m) => `
|
||||
<a class="profile-card" href="${m.page || `profil.html?p=${m.slug}`}">
|
||||
<div class="avatar">${(m.avatar || m.photo) ? `<img src="${m.avatar || m.photo}" alt="${m.name}" loading="lazy">` : `<span class="avatar-initial">${m.name.charAt(0).toUpperCase()}</span>`}</div>
|
||||
<span class="badge${m.rank === 1 ? " rank-1" : ""}" style="margin-bottom:.5rem;">Stufe ${m.rank}</span>
|
||||
<span class="badge${m.rank === 1 ? " rank-1" : ""}" style="margin-bottom:.5rem;">Stufe ${m.rankLabel || m.rank}</span>
|
||||
<h3>${m.name}</h3>
|
||||
<div class="role">${m.role}</div>
|
||||
<span class="btn btn-outline" style="margin-top:.7rem;pointer-events:none;">Profil ansehen</span>
|
||||
|
||||
Reference in New Issue
Block a user