diff --git a/app/templates/_header.html b/app/templates/_header.html index 29c22db..3bc2933 100644 --- a/app/templates/_header.html +++ b/app/templates/_header.html @@ -12,51 +12,62 @@ if (localStorage.getItem('kanbante-sidebar') === 'collapsed') { document.body.classList.add('sidebar-collapsed'); } + JSON.parse(localStorage.getItem('kanbante-nav-closed') || '[]') + .forEach(function (k) { + document.body.classList.add('nav-closed-' + k); + }); } catch (e) { /* stockage indisponible : état par défaut */ } {% set nav_groups = [ - ("Principal", [ + ("principal", "Principal", [ ("home", "/", "🏠", "Projets"), ("focus", "/focus", "🎯", "Focus"), ("today", "/today", "🌅", "Aujourd'hui"), ("my", "/my", "👤", "Mes issues"), ]), - ("Rituels", [ + ("rituels", "Rituels", [ ("briefing", "/briefing", "📊", "Briefing"), ("standup", "/standup", "🗣️", "Standup"), ("digest", "/digest", "🧠", "Digest"), ]), - ("Pilotage", [ + ("pilotage", "Pilotage", [ ("forecast", "/forecast", "🔮", "Prévisions"), ("health", "/health", "🩺", "Santé"), ("rules", "/rules", "⚙️", "Règles"), ("activity", "/activity", "📰", "Activité"), ]), - ("Outils", [ + ("outils", "Outils", [ ("search", "/search", "🔍", "Recherche"), ("capture", "/capture", "⚡", "Capture"), ("wall", "/wall", "🖥️", "Wallboard"), ]), ] %}