Show the profile picture on the dashboard welcome panel
Reuses the same avatar+heading layout as Mein Profil (.profile-header) so the greeting matches the picture, badges and all. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
22a61d28be
commit
00fb78b71d
1 changed files with 16 additions and 11 deletions
|
|
@ -47,17 +47,22 @@ $pageTitle = 'Dashboard';
|
|||
include __DIR__ . '/includes/header.php';
|
||||
?>
|
||||
<div class="panel">
|
||||
<h1>Willkommen, <?= e($user['display_name'] !== '' ? $user['display_name'] : $user['username']) ?>!</h1>
|
||||
<p class="text-muted">Hier ist dein Überblick über die Gilde.</p>
|
||||
<div class="badge-group">
|
||||
<?php foreach ($roleNames as $roleName): ?>
|
||||
<span class="badge"><?= e($roleName) ?></span>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($discordId): ?>
|
||||
<span class="badge badge-active">Discord verbunden</span>
|
||||
<?php else: ?>
|
||||
<span class="badge badge-disabled">Discord nicht verbunden</span>
|
||||
<?php endif; ?>
|
||||
<div class="profile-header">
|
||||
<?= avatar_html($user, 72) ?>
|
||||
<div>
|
||||
<h1>Willkommen, <?= e($user['display_name'] !== '' ? $user['display_name'] : $user['username']) ?>!</h1>
|
||||
<p class="text-muted">Hier ist dein Überblick über die Gilde.</p>
|
||||
<div class="badge-group">
|
||||
<?php foreach ($roleNames as $roleName): ?>
|
||||
<span class="badge"><?= e($roleName) ?></span>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($discordId): ?>
|
||||
<span class="badge badge-active">Discord verbunden</span>
|
||||
<?php else: ?>
|
||||
<span class="badge badge-disabled">Discord nicht verbunden</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue