diff --git a/_nav.html b/_nav.html index 060d6b3..007a7a8 100644 --- a/_nav.html +++ b/_nav.html @@ -1,7 +1,13 @@ +{{* -*- brindille -*- *}} + {{if $current == 'inventaire'}} {{/if}} diff --git a/index.html b/index.html index 7b096c1..799aa05 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,9 @@ {{else}} {{:assign proprio="nonproprio"}} {{/if}} -{{:include file="_nav.html" current="inventaire" subcurrent="%s"|args:$proprio}} + +{{#load type="category" count=true assign="result"}}{{/load}} +{{:include file="_nav.html" current="inventaire" cat="%d"|args:$result.count subcurrent="%s"|args:$proprio}} {{if $_GET.ok}} {{if $_GET.msg == "ajout" }} @@ -22,8 +24,6 @@ Modification refusée {{/if}} -{{#load type="category" count=true assign="result"}}{{/load}} - {{if $result.count == 0}} Il n'y a aucune catégorie : vous devez en ajouter. {{else}}
Modification refusée
Il n'y a aucune catégorie : vous devez en ajouter.