{% load menu_tags %}
{% if children %}
<ul id="menubar">
    {% for child in children %}
    <li class="{% if child.selected %}selected{% endif %}{% if child.ancestor %}ancestor{% endif %}{% if child.sibling %}sibling{% endif %}{% if child.descendant %}descendant{% endif %}">
        <a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">{{ child.get_menu_title }}
        {% if child.selected %}{% endif %}
        {% if child.children %}{% endif %}
        </a>
    </li>
    {% endfor %}
</ul>
{% endif %}


{% load menu_tags %}
{% load i18n cms_tags %}
{% if children %}
<ul id="menubar">
    {% for child in children %}
    <li class="{% if child.selected %}selected{% endif %}{% if child.ancestor %}ancestor{% endif %}{% if child.sibling %}sibling{% endif %}{% if child.descendant %}descendant{% endif %}">
        <a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">{{ child.get_menu_title }}
        {% if child.selected %}{% endif %}
        {% if child.children %}{% endif %}
        </a>
    </li>
    {% endfor %}

    <!-- In case the user is logged in, it displays a new button to bring him to the profile section -->
    {% block authentication %}
        {% if user.is_authenticated %}
                <li class="{% if child.selected %}selected{% endif %}{% if child.ancestor %}ancestor{% endif %}{% if child.sibling %}sibling{% endif %}{% if child.descendant %}descendant{% endif %}">
                        <a href="/survey/main/">{% trans "Your energy profile" %}</a>
                 </li>
        {% endif %}
    {% endblock authentication %}
</ul>
{% endif %}


Add libraries for translation. Add Your energy profile button in case of authenticated user.
Add libraries for translation. Add Your energy profile button in case of authenticated user.
