mirror of
				https://github.com/tiyn/container-critique.git
				synced 2025-10-31 03:01:21 +01:00 
			
		
		
		
	template: removed register link if registration is not enabled
This commit is contained in:
		| @@ -26,7 +26,7 @@ login.login_view = "login" | ||||
| @app.context_processor | ||||
| def inject_title(): | ||||
|     return dict(title=config.TITLE, style=config.STYLE, | ||||
|                 description=config.DESCRIPTION) | ||||
|                 description=config.DESCRIPTION, registration=config.ALLOW_REGISTRATION) | ||||
|  | ||||
|  | ||||
| @app.errorhandler(404) | ||||
|   | ||||
| @@ -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> | ||||
|         - | ||||
|   | ||||
		Reference in New Issue
	
	Block a user