summaryrefslogtreecommitdiff
path: root/assets/logo/banner.js
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
commit953ddd82e48dd206cef5ac94456549aed13b3ad5 (patch)
tree8f003106ee2e7f422e5a22d2ee04d0db302e66c0 /assets/logo/banner.js
parent62a9199846b0c07c03218703b33e8385764f42d9 (diff)
downloadpluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.gz
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.bz2
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.zip
Updated 30 files and deleted 2976 files (automated)
Diffstat (limited to 'assets/logo/banner.js')
-rw-r--r--assets/logo/banner.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/assets/logo/banner.js b/assets/logo/banner.js
index 7a13759..d092c62 100644
--- a/assets/logo/banner.js
+++ b/assets/logo/banner.js
@@ -84,15 +84,14 @@ async function refreshBanner(_, french) {
${data['badges'].length === 0 ? "&nbsp;" : ""}
</div>
- <div style="display:grid;grid-template-columns: repeat(${data['median'] || data['id'] === "unknown" ? (french ? 3 : 4) : data['id'] === "fusion" ? (french ? 2 : 3) : (french ? 4 : 5)}, 1fr);" id="member-card">
+ <div style="display:grid;grid-template-columns: repeat(${data['median'] || data['id'] === "unknown" ? (french || data['gender'] === null ? 3 : 4) : data['id'] === "fusion" ? (french || data['gender'] === null ? 2 : 3) : (french || data['gender'] === null ? 4 : 5)}, 1fr);" id="member-card">
+ ${french ? "" : `<span>
+ ${data['id'] === "fusion" ? "she/her" : data['pronouns']}${data['age'] !== "-" ? '<br>' + data['age'] : ''}
+ </span>`}
<span>
<b>${french ? `Préfixe${data['prefixes'].length > 1 ? 's' : ''} ` : `Prefix${data['prefixes'].length > 1 ? 'es' : ''}`}: </b><span class="member-small-separator"><br></span>
${data['prefixes'].length > 0 && data['prefixes'][0] !== null ? `<code style="color: white;">${data['prefixes'].join('</code>, <code style="color: white;">')}</code>` : `-`}
</span>
- ${french ? "" : `<span>
- <b>${french ? "Pronoms :" : "Pronouns:"} </b><span class="member-small-separator"><br></span>
- ${data['id'] === "fusion" ? "she/her" : data['pronouns']}
- </span>`}
${!data['median'] && data['id'] !== "unknown" ? `
<span>
${data["id"] === "fusion" ? `
@@ -116,7 +115,7 @@ async function refreshBanner(_, french) {
` : `${french ? "Jamais" : "Never"}<br>&nbsp;`}`}
</span>
` : ''}
- ${data['id'] !== "fusion" ? `
+ ${data['id'] !== "fusion" && data['gender'] !== null ? `
<span>
${data['id'] === "unknown" ? (french ? "<b>Genre : </b><span class=\"member-small-separator\"><br></span> préférez demander" : "<b>Gender: </b><span class=\"member-small-separator\"><br></span> best to ask") : `
<span><b>${french ? "Genre :" : "Gender:"} </b><span class="member-small-separator"><br></span></span>