This commit is contained in:
@@ -30,10 +30,13 @@ $allowNoKidsChecked = $editEvent ? ((int)$editEvent['allow_kids'] === 0) : false
|
||||
|
||||
<div class="container dash-section">
|
||||
<div class="dash-grid">
|
||||
<?php if (!empty($communityIsSiteAdmin)): ?>
|
||||
<?php if (in_array('forum_admin', $communityRoles ?? [], true) || !empty($communityIsSiteAdmin)): ?>
|
||||
<div class="card dash-card">
|
||||
<div class="badge">Admin</div>
|
||||
<h3>Community-Migration</h3>
|
||||
<h3>Community-Verwaltung</h3>
|
||||
<div class="flex gap-12" style="margin:12px 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>
|
||||
@@ -42,13 +45,13 @@ $allowNoKidsChecked = $editEvent ? ((int)$editEvent['allow_kids'] === 0) : false
|
||||
<?php else: ?>
|
||||
<p class="muted small">Migrationsstatus konnte nicht ermittelt werden.</p>
|
||||
<?php endif; ?>
|
||||
<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>
|
||||
<p class="muted small" style="margin-top:10px;">
|
||||
Führt die für Rollen, Bewerbungen, Meldungen, Bewertungen und Forenstruktur benötigten Datenbank-Erweiterungen aus.
|
||||
</p>
|
||||
<?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; ?>
|
||||
<p class="muted small" style="margin-top:10px;">Bündelt Moderation, Bewerbungen, Rollen und bei Bedarf auch die Community-Migration.</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user