templates: add variable to (not) include top registration link (#50873)

This commit is contained in:
Serghei Mihai 2021-02-04 15:06:55 +01:00
parent 7ca97a3a4f
commit 3c928a804b
1 changed files with 3 additions and 3 deletions

View File

@ -142,10 +142,10 @@ page-{{ page.slug }} page-template-{{ page.template_name }} {% with pages.0.slug
{% else %}
<span class="login"><a accesskey="2" class="login-link" href="{% url 'auth_login' %}"
>{% block user-info-login-label %}Connexion{% endblock %}
{% if idp_registration_url %}</a>{% endif %}
{% if idp_registration_url and include_registration_link != False %}</a>{% endif %}
<span class="sep">/</span>
{% if idp_registration_url %}<a class="registration" href="{{idp_registration_url}}"
>{% endif %}{% block user-info-registration-label %}Inscription{% endblock %}</a></span>
{% if idp_registration_url and include_registration_link != False %}<a class="registration" href="{{idp_registration_url}}"
>{% block user-info-registration-label %}Inscription{% endblock %}{% endif %}</a></span>
{% endif %}
{% end_skeleton_extra_placeholder %}
{% endblock %}