commi
All checks were successful
Deploy / deploy (push) Successful in 1m1s

This commit is contained in:
2026-07-31 22:41:23 +02:00
parent 25a50ae0da
commit 974f4880d0

View File

@@ -159,18 +159,26 @@ $sectionLinks = [
<?php endif; ?>
<?php if ($section === 'community'): ?>
<?php
$showCommunityModerationMeta = !empty($communityRoles)
|| !empty($communityRestrictions['reason'])
|| !empty($communityRestrictions['thread_create_blocked'])
|| !empty($communityRestrictions['reply_blocked']);
?>
<section class="account-panel">
<div class="account-panel__head">
<h2>Dein Community-Status</h2>
<p class="muted">Rang, Punkte, Rollen und dein aktueller Stand in der Community.</p>
<p class="muted">Rang, Punkte und bei Bedarf dein aktueller Stand in der Community.</p>
</div>
<div class="account-panel__body">
<dl class="account-kv">
<div><dt>Rang</dt><dd><?= htmlspecialchars(trim(($communityLevel['icon'] ?? '') . ' ' . ($communityLevel['label'] ?? '')), ENT_QUOTES) ?></dd></div>
<div><dt>Punkte</dt><dd><?= number_format((float)$communityPoints, 1, ',', '.') ?></dd></div>
<?php if ($showCommunityModerationMeta): ?>
<div><dt>Rollen</dt><dd><?= htmlspecialchars($communityRoles ? implode(', ', $communityRoles) : 'Keine besonderen Rollen', ENT_QUOTES) ?></dd></div>
<div><dt>Themen erstellen</dt><dd><?= $communityRestrictions['thread_create_blocked'] ? 'Gesperrt' : 'Erlaubt' ?></dd></div>
<div><dt>Antworten schreiben</dt><dd><?= $communityRestrictions['reply_blocked'] ? 'Gesperrt' : 'Erlaubt' ?></dd></div>
<?php endif; ?>
</dl>
<?php if (!empty($communityRestrictions['reason'])): ?>
<p class="muted small" style="margin-top:14px;">Hinweis zur Community-Sperre: <?= htmlspecialchars((string)$communityRestrictions['reason'], ENT_QUOTES) ?></p>