summaryrefslogtreecommitdiff
path: root/pages/travelling.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-11-11 23:47:49 +0100
committerMinteck <contact@minteck.org>2022-11-11 23:47:49 +0100
commit209356b8ade1920b50d1d3a1a5e121c6623d167b (patch)
tree5301396987d1510f715a0b1c24754873af19e1dc /pages/travelling.inc
parent2c4ae43e688a9873e86211ea0e7aeb9ba770dd77 (diff)
downloadpluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.gz
pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.bz2
pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.zip
Update
Diffstat (limited to 'pages/travelling.inc')
-rw-r--r--pages/travelling.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/pages/travelling.inc b/pages/travelling.inc
index e808063..b7b772b 100644
--- a/pages/travelling.inc
+++ b/pages/travelling.inc
@@ -116,7 +116,14 @@ global $travelling;
<div class="container">
<div>
<h2>System travelling</h2>
- <?php foreach (scoreOrderGlobal() as $member): ?>
+ <?php foreach ([
+ ...array_values(array_filter(scoreOrderGlobal(), function ($i) use ($travelling) {
+ return $travelling[$i['id']]["travelling"];
+ })),
+ ...array_values(array_filter(scoreOrderGlobal(), function ($i) use ($travelling) {
+ return !$travelling[$i['id']]["travelling"];
+ }))
+ ] as $member): ?>
<div class="relation" style="background-color:rgba(255, 255, 255, .1);margin-bottom:10px;padding:10px;border-radius:10px;display:grid;grid-template-columns: 1fr 2fr max-content;">
<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"] ?>