templates: hide separator when include_registration_link in false (#56816)

This commit is contained in:
Valentin Deniaud 2021-09-09 10:47:42 +02:00
parent bd6944d62a
commit 57c4788731
1 changed files with 3 additions and 2 deletions

View File

@ -14,9 +14,10 @@
{% firstof registration_url idp_registration_url as registration_url %}
<span class="login"><a accesskey="2" class="login-link" href="{% url 'auth_login' %}"
>{% block user-info-login-label %}Connexion{% endblock %}
{% if registration_url and include_registration_link != False %}</a>{% endif %}
{% if registration_url and include_registration_link != False %}
</a>
<span class="sep">/</span>
{% if registration_url and include_registration_link != False %}<a class="registration" href="{{registration_url}}"
<a class="registration" href="{{registration_url}}"
>{% block user-info-registration-label %}Inscription{% endblock %}{% endif %}</a></span>
{% endif %}
{% end_skeleton_extra_placeholder %}