feat(panel): reorganize navigation menu and rename dashboard
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s

Menu changes:
- Add "Enquêtes" menu item with pen icon
- Change "Impacts" icon from book to globe
- Add "Laboratoire" menu item
- Add navigation section with Contact, À propos, Mentions légales
- Clean up duplicate separators

Site blueprint:
- Rename "Site" to "Dashboard" for clarity

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-11 15:28:48 +01:00
parent bcb20968a5
commit 8ec9928ab9
2 changed files with 49 additions and 5 deletions

View file

@ -1,4 +1,4 @@
title: Site title: Dashboard
tabs: tabs:
contentTab: contentTab:

View file

@ -20,11 +20,18 @@ return [
return Str::contains($path, 'pages/home'); return Str::contains($path, 'pages/home');
} }
], ],
'-' 'enquetes' => [
, 'label' => 'Enquêtes',
'icon' => 'pen',
'link' => 'pages/enquetes',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/enquetes');
}
],
'impacts' => [ 'impacts' => [
'label' => 'Impacts', 'label' => 'Impacts',
'icon' => 'book', 'icon' => 'globe',
'link' => 'pages/impacts', 'link' => 'pages/impacts',
'current' => function (string $current): bool { 'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path(); $path = Kirby\Cms\App::instance()->path();
@ -40,6 +47,44 @@ return [
return Str::contains($path, 'pages/dossiers'); return Str::contains($path, 'pages/dossiers');
} }
], ],
'laboratoire' => [
'label' => 'Laboratoire',
'icon' => 'attachment',
'link' => 'pages/laboratoire',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/laboratoire');
}
],
'-',
'contact' => [
'label' => 'Contact',
'icon' => 'email',
'link' => 'pages/contact',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/contact');
}
],
'a-propos' => [
'label' => 'À propos',
'icon' => 'question',
'link' => 'pages/a-propos',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/a-propos');
}
],
'legal-notices' => [
'label' => 'Mentions légales',
'icon' => 'email',
'link' => 'pages/mentions-legales',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/mentions-legales');
}
],
'-',
'database' => [ 'database' => [
'label' => 'Bases de données', 'label' => 'Bases de données',
'icon' => 'table', 'icon' => 'table',
@ -50,6 +95,5 @@ return [
} }
], ],
'-', '-',
'-',
'users' 'users'
]; ];