summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-01-21 16:02:04 +0100
committerMinteck <contact@minteck.org>2023-01-21 16:02:04 +0100
commit3c61f1fa437cac2ee473b36518311a450efe12f1 (patch)
tree6806be01c3543c23e2297bc9c7fc809405b9ae89
parent68c018eff1926fded5b8f7e88b1ca30f7b171f6b (diff)
downloadpluralconnect-3c61f1fa437cac2ee473b36518311a450efe12f1.tar.gz
pluralconnect-3c61f1fa437cac2ee473b36518311a450efe12f1.tar.bz2
pluralconnect-3c61f1fa437cac2ee473b36518311a450efe12f1.zip
Updated pages/byfront.inc (automated)
-rw-r--r--pages/byfront.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/pages/byfront.inc b/pages/byfront.inc
index ca2a6c2..88da2f5 100644
--- a/pages/byfront.inc
+++ b/pages/byfront.inc
@@ -48,7 +48,7 @@ $travelling = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includ
return $i;
}, array_values(array_filter(scoreOrderGlobal(), function ($i) {
- return $i["_system"] === "ynmuc" && !$i["_metadata"]["persecutor"];
+ return $i["_system"] === "ynmuc";
}))),
...array_map(function ($i) {
$system = "gdapd";
@@ -86,18 +86,21 @@ $travelling = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includ
return $i;
}, array_values(array_filter(scoreOrderGlobal(), function ($i) {
- return $i["_system"] === "gdapd" && !$i["_metadata"]["persecutor"];
+ return $i["_system"] === "gdapd";
})))
]; uasort($members, function ($a, $b) {
return $b["_lastFronted"] - $a["_lastFronted"];
}); $members = array_reverse($members); foreach ($members as $member): if ($member["_lastFronted"] !== -1 && $member["_lastFronted"] !== time()): ?>
- <div class="relation" style="background-color:<?php if ($member["_metadata"]["less_frequent"]): ?><?php if ($member["_lastFronted"] > time() - (86400 * 21)): ?>rgba(255, 255, 255, .1)<?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 37)): ?>rgba(255, 227, 0, 0.17)<?php else: ?>rgba(255,55,55,0.17)<?php endif; ?>;<?php endif; ?><?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 21)): ?>rgba(255, 255, 255, .1)<?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 30)): ?>rgba(255, 227, 0, 0.17)<?php else: ?>rgba(255,55,55,0.17)<?php endif; ?>;<?php endif; ?><?php endif; ?>;margin-bottom:10px;padding:10px;border-radius:10px;display:grid;grid-template-columns: 1fr 2fr max-content;<?php if ($travelling[$member['id']]["travelling"]): ?>opacity: 0.75;<?php endif; ?>">
+ <div class="relation" style="background-color:<?php if ($member["_metadata"]["less_frequent"] || $member["_metadata"]["persecutor"]): ?><?php if ($member["_lastFronted"] > time() - (86400 * 21)): ?>rgba(255, 255, 255, .1)<?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 37)): ?>rgba(255, 227, 0, 0.17)<?php else: ?>rgba(255,55,55,0.17)<?php endif; ?>;<?php endif; ?><?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 21)): ?>rgba(255, 255, 255, .1)<?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 30)): ?>rgba(255, 227, 0, 0.17)<?php else: ?>rgba(255,55,55,0.17)<?php endif; ?>;<?php endif; ?><?php endif; ?>;margin-bottom:10px;padding:10px;border-radius:10px;display:grid;grid-template-columns: 1fr 2fr max-content;<?php if ($travelling[$member['id']]["travelling"]): ?>opacity: 0.75;<?php endif; ?>">
<a class="relation-intro" style="background-color:rgba(255, 255, 255, .05);border-right:1px solid rgba(255, 255, 255, .1);margin:-10px;padding:10px;border-top-left-radius:10px;border-bottom-left-radius:10px;color: white;display:flex;align-items:center;text-decoration: none;" href="/<?= $member["name"] ?>">
<img src="<?= getAsset($member['system'], $member["id"], "heads") ?>" style="width:24px;">&nbsp;<?= $member["display_name"] ?? $member["name"] ?>
<span style="display: inline-block;margin-left: auto;">
<?php if ($member["_metadata"]["less_frequent"]): ?>
<span class="badge bg-success rounded-pill">Less</span>
<?php endif; ?>
+ <?php if ($member["_metadata"]["persecutor"]): ?>
+ <span class="badge bg-light text-black rounded-pill">Persecutor</span>
+ <?php endif; ?>
<?php if ($member["_metadata"]["shared_memory"] !== 2): ?>
<span class="badge text-black bg-warning rounded-pill">Memory</span>
<?php endif; ?>