diff --git a/_nav.html b/_nav.html index c615e3d..c2eefae 100644 --- a/_nav.html +++ b/_nav.html @@ -3,31 +3,23 @@ diff --git a/equipment_history.html b/equipment_history.html index 5db0fb6..ebd9370 100644 --- a/equipment_history.html +++ b/equipment_history.html @@ -26,11 +26,7 @@ {{:admin_header title="Gestion des matériels" custom_css="./style.css" current="module_equipment"}} {{* barre de navigation *}} -{{if $_GET.current != null}} - {{:assign current=$_GET.current}} -{{else}} - {{:assign current="inventaire"}} -{{/if}} +{{:assign current=$_GET.current|or:"inventaire"}} {{* récupérer la config des entrées/sorties *}} {{:include file="./_get_config.html" keep="config"}} diff --git a/index.html b/index.html index d05fab9..d2401c2 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ {{#restrict block=true section="accounting" level="write"}}{{/restrict}} {{#load type="category" count=true limit=1 assign="result"}}{{/load}} - {{:include file="_nav.html" current="inventaire" cat="%d"|args:$result.count subcurrent="stock"}} + {{:include file="_nav.html" current="inventaire" cat="%d"|args:$result.count}} {{if $_GET.ok}} {{if $_GET.msg == "ajout" }}