This commit is contained in:
@@ -13,9 +13,6 @@ $sectionLinks = [
|
||||
'community' => 'Community',
|
||||
'settings' => 'Einstellungen',
|
||||
];
|
||||
if (in_array('admin', $allowedSections ?? [], true)) {
|
||||
$sectionLinks['admin'] = 'Admin';
|
||||
}
|
||||
?>
|
||||
<main class="section">
|
||||
<div class="container" style="display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;">
|
||||
@@ -277,33 +274,6 @@ if (in_array('admin', $allowedSections ?? [], true)) {
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($section === 'admin' && in_array('admin', $allowedSections ?? [], true)): ?>
|
||||
<section class="account-panel">
|
||||
<div class="account-panel__head">
|
||||
<h2>Community-Verwaltung</h2>
|
||||
<p class="muted">Moderation, Bewerbungen, Rollen und Migration.</p>
|
||||
</div>
|
||||
<div class="account-panel__body">
|
||||
<div class="flex gap-12" style="margin:0 0 16px 0; flex-wrap:wrap;">
|
||||
<a class="btn" href="/community-admin">Zum Admin-Bereich</a>
|
||||
</div>
|
||||
<?php if ($communityMigrationStatus): ?>
|
||||
<ul class="dash-list">
|
||||
<li>Status: <?= !empty($communityMigrationStatus['complete']) ? 'Vollständig eingerichtet' : 'Migration noch offen' ?></li>
|
||||
<li>Fehlende Bausteine: <?= !empty($communityMigrationStatus['missing']) ? htmlspecialchars(implode(', ', $communityMigrationStatus['missing']), ENT_QUOTES) : 'Keine' ?></li>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<p class="muted small">Migrationsstatus konnte nicht ermittelt werden.</p>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($communityIsSiteAdmin)): ?>
|
||||
<form method="post" style="margin-top:12px;">
|
||||
<input type="hidden" name="action" value="community_migrate">
|
||||
<button class="btn" type="submit">Community-Migration ausführen</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user