misc: add support for a template variable hiding registration link (#68901)

This commit is contained in:
Frédéric Péters 2022-09-09 14:03:18 +02:00
parent 2cf3d06af6
commit 4e0c3163e9
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
{% if can_reset_password %}
<li><p>→ {% trans "Forgot password?" %} <a href="{% url 'password_reset' %}{% if request.GET.next %}?next={{ request.GET.next|urlencode }}{% endif %}">{% trans "Reset it!" %}</a></p></li>
{% endif %}
{% if registration_authorized %}
{% if registration_authorized and not hide_login_registration_link %}
<li><p>→ {% trans "Not a member?" %} <a href="{{ registration_url }}">{% trans "Register!" %}</a></p></li>
{% endif %}
</ul>