summaryrefslogtreecommitdiff
path: root/assets/logo/banner.js
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-04-13 22:07:44 +0200
committerRaindropsSys <contact@minteck.org>2023-04-13 22:07:44 +0200
commiteb7405f92bd01ab59a056ff5df6d2f1d6b30f0ce (patch)
treec15e12e96e0e83b665e4931df50bc034620fde3e /assets/logo/banner.js
parenteafc2b02a66838fdadb2da70d5b1a9aa04051de6 (diff)
downloadpluralconnect-eb7405f92bd01ab59a056ff5df6d2f1d6b30f0ce.tar.gz
pluralconnect-eb7405f92bd01ab59a056ff5df6d2f1d6b30f0ce.tar.bz2
pluralconnect-eb7405f92bd01ab59a056ff5df6d2f1d6b30f0ce.zip
Updated 13 files and added 2 files (automated)
Diffstat (limited to 'assets/logo/banner.js')
-rw-r--r--assets/logo/banner.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/assets/logo/banner.js b/assets/logo/banner.js
index 02a8298..7a13759 100644
--- a/assets/logo/banner.js
+++ b/assets/logo/banner.js
@@ -55,6 +55,7 @@ async function refreshBanner(_, french) {
if (data['relations']['caretakers'] && data['relations']['caretakers'].length > 0) active++;
if (data['relations']['sexfriends'] && data['relations']['sexfriends'].length > 0) active++;
if (data['relations']['sisters'] && data['relations']['sisters'].length > 0) active++;
+ if (data['relations']['friends'] && data['relations']['friends'].length > 0) active++;
document.getElementById("member-banner").innerHTML = `
@@ -159,6 +160,12 @@ async function refreshBanner(_, french) {
${data['relations']['caretakers'].length === 0 ? '-' : ''}
</span>
` : ''}
+ ${data['relations']['friends'] && data['relations']['friends'].length > 0 ? `<span>
+ <b>${french ? (data['relations']['friends'].length > 1 ? 'Amies ' : 'Amie ') : `Friend${data['relations']['friends'].length > 1 ? 's' : ''}`}: </b>${data['relations']['sisters'].length > 1 ? '<span class="list-separator-mobile"><br></span>' : ''}
+ ${data['relations']['friends'].map(relation => `
+ <a title="${relation['name']}" data-bs-toggle="tooltip" class="member-link tooltip-nohelp" href="${relation['link']}"><img src="${offline ? relation['icon_offline'] : `${relation['icon']}`}" style="width:24px;"></a>`).join(``)}
+ ${data['relations']['friends'].length === 0 ? '-' : ''}
+ </span>` : ``}
</div>
` : '<div style="margin-top:5px;">&nbsp;</div>'}
</div>