comparison 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
comparison
equal deleted inserted replaced
164:e9f0a4215e46 165:9e8d9d754337
60 {% block favicon %} 60 {% block favicon %}
61 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png"> 61 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png">
62 {% endblock favicon %} 62 {% endblock favicon %}
63 </head> 63 </head>
64 <body> 64 <body>
65 {% if main_menu is defined %} 65 {% if main_menu %}
66 {% block main_menu %} 66 {% block main_menu %}
67 {{ component.menu(main_menu, class="main_menu") }} 67 {{ component.menu(main_menu, class="main_menu") }}
68 {% endblock main_menu %} 68 {% endblock main_menu %}
69 {% endif %} 69 {% endif %}
70 70