templates: check registration url generated by idp (#53070)
This commit is contained in:
parent
89262d914f
commit
239cd0b542
|
@ -11,11 +11,12 @@
|
|||
<a accesskey="o" class="logout" href="{% url 'auth_logout' %}">{% block user-info-logout-label %}Déconnexion{% endblock %}</a>
|
||||
</span>
|
||||
{% else %}
|
||||
{% 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 idp_registration_url and include_registration_link != False %}</a>{% endif %}
|
||||
{% if registration_url and include_registration_link != False %}</a>{% endif %}
|
||||
<span class="sep">/</span>
|
||||
{% if idp_registration_url and include_registration_link != False %}<a class="registration" href="{{idp_registration_url}}"
|
||||
{% if registration_url and include_registration_link != False %}<a class="registration" href="{{registration_url}}"
|
||||
>{% block user-info-registration-label %}Inscription{% endblock %}{% endif %}</a></span>
|
||||
{% endif %}
|
||||
{% end_skeleton_extra_placeholder %}
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
{% else %}
|
||||
<a class="login" href="{% url 'auth_login' %}">Connexion</a>
|
||||
<span class="sep"> - </span>
|
||||
<a class="registration" href="{{idp_registration_url}}">Inscription</a>
|
||||
<a class="registration" href="{% firstof registration_url idp_registration_url %}">Inscription</a>
|
||||
{% endif %}
|
||||
<a class="home" href="{{ portal_url }}">Accueil</a>
|
||||
{% end_skeleton_extra_placeholder %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
</span>
|
||||
{% else %}
|
||||
<a class="login pk-button" accesskey="2" href="{% url 'auth_login' %}">Connexion</a>
|
||||
<span class="registration">Pas de compte ? <a href="{{idp_registration_url}}">S'inscrire</a></span>
|
||||
<span class="registration">Pas de compte ? <a href="{% firstof registration_url idp_registration_url %}">S'inscrire</a></span>
|
||||
{% endif %}
|
||||
{% end_skeleton_extra_placeholder %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue