misc: add support for a template variable hiding registration link (#68901)
This commit is contained in:
parent
2cf3d06af6
commit
4e0c3163e9
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue