template: removed register link if registration is not enabled

This commit is contained in:
2022-08-02 02:14:41 +02:00
parent 1a5c429fcd
commit 3b3a500135
2 changed files with 3 additions and 1 deletions

View File

@@ -33,8 +33,10 @@
Made with <a href="https://github.com/tiyn/container-critique">Container Critique </a>.<br>
{% if current_user.is_anonymous %}
<a href="{{ url_for('login') }}">Login</a>
{% if registration %}
-
<a href="{{ url_for('register') }}">Register</a>
{% endif %}
{% else %}
<a href="{{ url_for('logout') }}">Logout</a>
-