sdasd
All checks were successful
Deploy / deploy (push) Successful in 54s

This commit is contained in:
2026-08-17 00:34:41 +02:00
parent 0d384cee2d
commit 0f57f90568
9 changed files with 142 additions and 5 deletions

View File

@@ -340,6 +340,30 @@ if (!empty($canManageSystemSettings)) {
<h2>Profil-Levels</h2>
</div>
<div class="account-panel__body">
<div class="card" style="margin-bottom:18px;">
<strong>Kürzlich erreicht</strong>
<?php if (!empty($recentHighLevelUsers) && !empty($recentHighLevelThresholdLabel)): ?>
<ul class="dash-list" style="margin-top:12px;">
<?php foreach ($recentHighLevelUsers as $recentHighLevelUser): ?>
<?php
$recentHighLevelUserName = (string)($recentHighLevelUser['display_name'] ?: trim(((string)($recentHighLevelUser['first_name'] ?? '')) . ' ' . ((string)($recentHighLevelUser['last_name'] ?? ''))) ?: 'Mitglied');
$recentHighLevelUserLevel = trim(((string)(($recentHighLevelUser['level']['icon'] ?? ''))) . ' ' . ((string)(($recentHighLevelUser['level']['label'] ?? ''))));
?>
<li>
<strong><?= htmlspecialchars($recentHighLevelUserName, ENT_QUOTES) ?></strong>
<div class="muted small" style="margin-top:4px;">
<?= htmlspecialchars($recentHighLevelUserLevel, ENT_QUOTES) ?> ·
<?= number_format((float)($recentHighLevelUser['points'] ?? 0), 1, ',', '.') ?> Punkte ·
<?= htmlspecialchars(date('d.m.Y', strtotime((string)($recentHighLevelUser['reached_at'] ?? ''))), ENT_QUOTES) ?>
</div>
</li>
<?php endforeach; ?>
</ul>
<?php else: ?>
<p class="muted small" style="margin-top:12px;">Keine neuen Aufstiege vorhanden.</p>
<?php endif; ?>
</div>
<div class="card" style="margin-bottom:18px;">
<strong>Benutzer suchen</strong>
<form method="get" class="stack gap-12" style="margin-top:14px;">