Mercurial > libervia-templates
diff sat_templates/templates/default/base/base.html @ 165:9e8d9d754337
base/base.html: don't show menu if main_menu is defined but none or empty
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Sep 2018 19:49:15 +0200 |
parents | e9f0a4215e46 |
children | 178f55b825b7 |
line wrap: on
line diff
--- a/sat_templates/templates/default/base/base.html Mon Sep 10 08:53:33 2018 +0200 +++ b/sat_templates/templates/default/base/base.html Fri Sep 14 19:49:15 2018 +0200 @@ -62,7 +62,7 @@ {% endblock favicon %} </head> <body> - {% if main_menu is defined %} + {% if main_menu %} {% block main_menu %} {{ component.menu(main_menu, class="main_menu") }} {% endblock main_menu %}