forked from unimatrix/web
Identify the official account and its recognition catalogue clearly
This commit is contained in:
parent
a8956bc88e
commit
2779b84990
2 changed files with 2 additions and 2 deletions
|
|
@ -5,6 +5,6 @@
|
|||
<div class="profile-columns"><section class="profile-panel"><p class="eyebrow">THE PERSON BEHIND THE NAME</p><h2>About</h2><p id="bio" class="profile-prose">No public biography added yet.</p><p id="public-info" class="profile-prose" hidden></p><div id="socials" class="chips"></div></section><section class="profile-panel"><p class="eyebrow">CURRENT RESPONSIBILITIES</p><h2>Functions & service</h2><div id="department" class="profile-functions"></div><p id="tickets" class="muted"></p></section></div>
|
||||
<section id="personal-seal-panel" class="profile-panel personal-seal-panel" hidden><div><p class="eyebrow">PERSONAL RECOGNITION</p><h2>Personal seal</h2><p>Issued in this member’s name.</p></div><div id="personal-seal"></div></section>
|
||||
<section id="order-panel" class="profile-panel profile-order" hidden><img src="/assets/seals/order-crysknife-v1.png" alt="Holy Order of the Crysknife" width="120" height="120"><div><p class="eyebrow">SERVICE BEYOND OFFICE</p><h2>Holy Order of the Crysknife</h2><p>Order membership recognises service to DuneRealms and is separate from staff authority.</p></div></section>
|
||||
<section class="profile-panel"><p class="eyebrow">SERVICE & RECOGNITION</p><h2>Seals & earned awards</h2><p class="muted">Current function seals and recorded community achievements.</p><div id="seals" class="profile-award-groups"></div></section>
|
||||
<section class="profile-panel"><p class="eyebrow">SERVICE & RECOGNITION</p><h2 id="recognition-title">Seals & earned awards</h2><p id="recognition-description" class="muted">Current function seals and recorded community achievements.</p><div id="seals" class="profile-award-groups"></div></section>
|
||||
<section class="profile-panel"><p class="eyebrow">AROUND THE REALMS</p><h2>Community activity</h2><div id="community" class="profile-community"></div></section>
|
||||
</main><footer><a href="/">DuneRealms</a><nav><a href="https://support.dunerealms.com/">Support</a><a href="/rates-and-charges.html">Rates & Charges</a></nav></footer></body></html>
|
||||
|
|
|
|||
|
|
@ -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||[];
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff