comparison sat_templates/templates/bulma/components/common.html @ 322:11ed664a309c

bulma (menu): show active menu
author Goffi <goffi@goffi.org>
date Thu, 29 Apr 2021 20:43:53 +0200
parents 6411615771b6
children b313a7d343af
comparison
equal deleted inserted replaced
321:c08fadf23c46 322:11ed664a309c
14 </a> 14 </a>
15 </div> 15 </div>
16 <div id="main_menu" class="navbar-menu"> 16 <div id="main_menu" class="navbar-menu">
17 <div class="navbar-start"> 17 <div class="navbar-start">
18 {% for name, url in menus %} 18 {% for name, url in menus %}
19 <a class="navbar-item" {{ {'href': url}|xmlattr }}> 19 <a
20 class="navbar-item {% if name == current_page %}is-tab is-active{% endif%}"
21 {{ {'href': url}|xmlattr }}
22 >
20 {{ml.label[name] or name}} 23 {{ml.label[name] or name}}
21 </a> 24 </a>
22 {% endfor %} 25 {% endfor %}
23 </div> 26 </div>
24 <div class="navbar-end"> 27 <div class="navbar-end">