diff --git a/website/node/public/passport.html b/website/node/public/passport.html index 01275fb3..9e8f8a81 100644 --- a/website/node/public/passport.html +++ b/website/node/public/passport.html @@ -5,6 +5,6 @@

THE PERSON BEHIND THE NAME

About

No public biography added yet.

CURRENT RESPONSIBILITIES

Functions & service

-

SERVICE & RECOGNITION

Seals & earned awards

Current function seals and recorded community achievements.

+

SERVICE & RECOGNITION

Seals & earned awards

Current function seals and recorded community achievements.

AROUND THE REALMS

Community activity

diff --git a/website/node/public/passport.js b/website/node/public/passport.js index a6029835..0726de25 100644 --- a/website/node/public/passport.js +++ b/website/node/public/passport.js @@ -2,7 +2,7 @@ const $=id=>document.getElementById(id),el=(tag,value,cls)=>{const n=document.cr const text=(id,value)=>{$(id).textContent=value??'—';},username=decodeURIComponent(location.pathname.split('/').filter(Boolean)[1]||''); function sealCard(m){const card=el('figure',null,'profile-seal'),image=el('img');image.src=m.url;image.alt=m.label;image.loading='lazy';image.width=image.height=128;card.append(image,el('figcaption',m.label),el('small',m.group||'Recognition'));return card;} function render(p){ - document.title=(p.displayName||p.username)+' | DuneRealms';text('passport-title',p.displayName||p.username);text('handle','@'+p.username);text('status','DuneRealms community member');text('joined',p.joinedAt?new Date(p.joinedAt).toLocaleDateString('en-GB'):null);text('clan',p.clan?.status==='member'?p.clan.name:'No clan listed');text('forum',p.forum?.status==='linked'?p.forum.username:'Not linked'); + document.title=(p.displayName||p.username)+' | DuneRealms';text('passport-title',p.displayName||p.username);text('handle','@'+p.username);text('status',p.showcase?'Verified official DuneRealms account':'DuneRealms community member');if(p.showcase){text('recognition-title','Seal & award showcase');text('recognition-description','The general DuneRealms catalogue. Personal seals and the Holy Order of the Crysknife are excluded.');}text('joined',p.joinedAt?new Date(p.joinedAt).toLocaleDateString('en-GB'):null);text('clan',p.clan?.status==='member'?p.clan.name:'No clan listed');text('forum',p.forum?.status==='linked'?p.forum.username:'Not linked'); if(typeof p.avatar==='string'&&/^https:\/\/cp\.dunerealms\.com\/api\/avatars\//.test(p.avatar)){$('avatar').src=p.avatar;$('avatar').hidden=false;} for(const rank of p.ranks||[]){if(rank.label==='Unknown rank')continue;const chip=el('span',rank.label,'chip');chip.dataset.staff=String(rank.key.startsWith('org_'));$('ranks').append(chip);} const functions=p.functions||[];