{% from theme('macros/search.html') import site_search with context %} {% cache cache_duration, 'header-menu', g.lang_code|default(config.DEFAULT_LANGUAGE)|string %} Koumoul La donnée accessible {% if current_user.is_authenticated %} {{ current_user.fullname }} {{ _('My profile') }} {% if current_user.organizations %} {{ _('Organizations') }} {% for org in current_user.organizations %} {{ org.acronym or org.name }} {% endfor %} {% endif %} {{ _('Administration') }} {{ _('Logout') }} {% else %} {{ _('Sign In / Register') }} {% endif %} {% if g.lang_code and request.url %} {{ _('Language') }} {% for code, name in config['LANGUAGES'].items() %} {{name}} {% endfor %} {% endif %} {% for item in current_theme.menu %} {{ item.label }} {% if item.items %} {% for subitem in item.items %} {{ subitem.label }} {% endfor %} {% endif %} {% endfor %} {{ site_search(class='navbar-form') }} {% endcache %}