summaryrefslogtreecommitdiff
path: root/pages/profiles.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/profiles.inc')
-rw-r--r--pages/profiles.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/profiles.inc b/pages/profiles.inc
index 41e5222..8440b5f 100644
--- a/pages/profiles.inc
+++ b/pages/profiles.inc
@@ -65,7 +65,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/util/profiles.inc';
<div style="margin: -10px -10px -10px 10px;background: linear-gradient(90deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .1) <?= round($member["_score"]["progress"] * 100) ?>%, transparent <?= round($member["_score"]["progress"] * 100) ?>.000001%);border-top-right-radius: 10px;border-bottom-right-radius: 10px;display: flex;align-items: center;">
<div style="margin-left: 10px; width: 100%;">
- <?php if (count($member["_score"]["actions"]) < 3): ?>
+ <?php if (count($member["_score"]["actions"]) === 0): ?>
+ Complete profile
+ <?php elseif (count($member["_score"]["actions"]) < 3): ?>
Add <?= implode(" and ", $member["_score"]["actions"]) ?> to get to 100%
<?php else: ?>
<?= round($member["_score"]["progress"] * 100) ?>% complete