refactor(navigation): remove legacy navigation.js and integrate logic into navigation_sidebar.js
Some checks failed
CI / lint (push) Successful in 17s
Deploy - Coolify / deploy (push) Failing after 5s
CI / test (push) Successful in 1m21s
CI / build (push) Successful in 2m25s

This commit is contained in:
2025-11-15 13:53:50 +01:00
parent ea101d1695
commit eb2687829f
5 changed files with 269 additions and 59 deletions

View File

@@ -1,4 +1,5 @@
{% set sidebar_nav = get_sidebar_navigation(request) %}
{% set nav_roles = sidebar_nav.roles if sidebar_nav and sidebar_nav.roles else [] %}
{% set nav_groups = sidebar_nav.groups if sidebar_nav else [] %}
{% set current_path = request.url.path if request else '' %}
@@ -6,6 +7,7 @@
class="sidebar-nav"
aria-label="Primary navigation"
data-navigation-source="{{ 'server' if sidebar_nav else 'fallback' }}"
data-navigation-roles="{{ nav_roles | join(',') }}"
>
<div class="sidebar-nav-controls">
<button id="nav-prev" class="nav-chevron nav-chevron-prev" aria-label="Previous page"></button>