diff options
Diffstat (limited to 'pages/travelling.inc')
-rw-r--r-- | pages/travelling.inc | 9 |
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;"> <?= $member["display_name"] ?? $member["name"] ?> |