summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-12-21 18:09:20 +0100
committerMinteck <contact@minteck.org>2022-12-21 18:09:20 +0100
commitae766d28c07628e71629a72452261898ea72057a (patch)
tree79bf1110a59f8339ce685b80c12d18f3650700d8 /app
parent9d5e468be5e58269f8730305745eee29b9d957d5 (diff)
downloadpluralconnect-ae766d28c07628e71629a72452261898ea72057a.tar.gz
pluralconnect-ae766d28c07628e71629a72452261898ea72057a.tar.bz2
pluralconnect-ae766d28c07628e71629a72452261898ea72057a.zip
Update - This is an automated commit
Diffstat (limited to 'app')
-rw-r--r--app/banner.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/banner.js b/app/banner.js
index dc1a06b..5ddb2d2 100644
--- a/app/banner.js
+++ b/app/banner.js
@@ -68,10 +68,6 @@ async function refreshBanner(offline, french) {
data['last_fronted']['relative'] = timeAgo(currentMemberData.last_fronted.timestamp * 1000);
}
- if (data.id === "scootaloo" && new Date().getDay() % 2 === 0) {
- data['relations']['marefriends'] = data['relations']['marefriends'].reverse();
- }
-
if (offline) {
let images = JSON.parse(await localforage.getItem("images"));
@@ -131,7 +127,7 @@ async function refreshBanner(offline, french) {
<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">
<span>
<b>${french ? `Préfixe${data['prefixes'].length > 1 ? 's' : ''} ` : `Prefix${data['prefixes'].length > 1 ? 'es' : ''}`}: </b><span class="member-small-separator"><br></span>
- <code style="color: white;">${data['prefixes'].join('</code>, <code style="color: white;">')}</code>
+ ${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>