aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/account/templates/navigation/main-nav.html.twig
blob: e44c9c8ced07f96b9f01a520f81e06389e71b308 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{# This extend the same file from core to add a sign-up/sign-in or "my account" link to the "home page" nav menu. #}
{% extends "@core/navigation/main-nav.html.twig" %}

{% block secondary_nav %}
    {{parent()}}
    {% if not checkAuthenticated() %}
        <li>
            <a href="{{site.uri.public}}/account/sign-in" class="nav-highlight">{{translate("SIGNIN")}}</a>
        </li>
    {% else %}
        {% include "navigation/user-card.html.twig" %}
    {% endif %}
{% endblock %}