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

@@ -5,9 +5,12 @@ if ($currentModuleName === null && preg_match('~^/modules/(?:setup|access)/([a-z
$currentModuleName = $moduleMatch[1];
}
$currentModule = $currentModuleName !== null ? modules()->get($currentModuleName) : null;
$headerEyebrow = $currentModule ? 'Modul' : 'Nexus';
$headerTitle = $currentModule ? (string)($currentModule['title'] ?? $currentModuleName) : (defined('APP_DOMAIN_PRIMARY') ? (string)APP_DOMAIN_PRIMARY : 'Nexus');
$headerText = $currentModule ? (string)($currentModule['description'] ?? '') : 'Kompakter Einstieg fuer die verfuegbaren Module.';
$isStagingHost = defined('APP_DOMAIN_PRIMARY') && str_starts_with((string) APP_DOMAIN_PRIMARY, 'staging.');
$headerEyebrow = '';
$headerTitle = $currentModule
? (string)($currentModule['title'] ?? $currentModuleName)
: ('Nexus' . ($isStagingHost ? ' (staging)' : ''));
$headerText = $currentModule ? (string)($currentModule['description'] ?? '') : '';
$auth = app()->auth();
$authUser = $auth->user();
?>
@@ -43,7 +46,9 @@ $authUser = $auth->user();
<img src="/assets/images/logo.png" alt="Nexus Logo">
</a>
<div class="brand-copy">
<span class="eyebrow"><?= e($headerEyebrow) ?></span>
<?php if ($headerEyebrow !== ''): ?>
<span class="eyebrow"><?= e($headerEyebrow) ?></span>
<?php endif; ?>
<h1><?= e($headerTitle) ?></h1>
<?php if ($headerText !== ''): ?>
<p><?= e($headerText) ?></p>