layout
All checks were successful
Deploy / deploy-staging (push) Successful in 5s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-03 01:50:10 +02:00
parent fa424957b6
commit 2d56289477
3 changed files with 24 additions and 49 deletions

View File

@@ -9,24 +9,20 @@ $modules = array_values(array_filter(
));
?>
<section class="module-list-section" data-reveal>
<div class="section-head">
<div>
<h2 class="section-title">Verfuegbare Module</h2>
<p>Module mit Login-Pflicht erscheinen erst nach passender Anmeldung.</p>
</div>
<?php if ($authUser !== null): ?>
<?php if ($authUser !== null): ?>
<div class="section-head">
<div style="display:flex; gap:10px; flex-wrap:wrap;">
<a class="nav-link" href="/modules">Module verwalten</a>
<?php if (auth_is_admin()): ?>
<a class="nav-link" href="/exports/database.sql">SQL-Export</a>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if ($modules === []): ?>
<div class="empty-state" data-reveal>
Keine Module fuer den aktuellen Zugriff sichtbar.
Keine Module für den aktuellen Zugriff sichtbar.
</div>
<?php else: ?>
<div class="module-list">
@@ -34,11 +30,9 @@ $modules = array_values(array_filter(
<a class="module-row" href="<?= e((string)($module['entry'] ?? ('/module/' . $module['name']))) ?>">
<span class="module-row__icon"><?= e(strtoupper(substr((string)($module['title'] ?? $module['name']), 0, 1))) ?></span>
<span class="module-row__content">
<span class="module-kicker"><?= e((string)($module['name'] ?? '')) ?></span>
<strong class="module-title"><?= e((string)($module['title'] ?? $module['name'] ?? 'Modul')) ?></strong>
<span class="module-desc"><?= e((string)($module['description'] ?? '')) ?></span>
</span>
<span class="module-row__action">Oeffnen</span>
</a>
<?php endforeach; ?>
</div>