asdasd
All checks were successful
Deploy / deploy (push) Successful in 1m30s

This commit is contained in:
2026-08-03 21:35:28 +02:00
parent 974f4880d0
commit 10557acb0e

View File

@@ -160,22 +160,19 @@ $sectionLinks = [
<?php if ($section === 'community'): ?>
<?php
$showCommunityModerationMeta = !empty($communityRoles)
|| !empty($communityRestrictions['reason'])
|| !empty($communityRestrictions['thread_create_blocked'])
$showCommunityRestrictionState = !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 und bei Bedarf dein aktueller Stand in der Community.</p>
<p class="muted">Rang, Punkte und nur bei Bedarf ein Hinweis zu aktiven Schreibsperren.</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>
<?php if ($showCommunityRestrictionState): ?>
<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; ?>