{% trans "You are already logged in" %}
-- {% trans "Redirecting you to the website entry point in 5 seconds." %} -
-
- {% blocktrans %}Or click here if redirection doesn't work.{% endblocktrans %} - -diff --git a/apps/web_theme/templates/web_theme_login.html b/apps/web_theme/templates/web_theme_login.html index ca98f0c7e9..302e371226 100644 --- a/apps/web_theme/templates/web_theme_login.html +++ b/apps/web_theme/templates/web_theme_login.html @@ -3,51 +3,52 @@ {% load theme_tags %} {% block web_theme_head %} - {% if not user.is_anonymous %} + {% if user.is_authenticated %} {% get_login_redirect_url %} {% endif %} {% endblock %} {% block html_title %}{% trans "Login" %}{% endblock %} -{% if not user.is_anonymous %} - {% block web_theme_content %} - {% get_login_redirect_url %} -
- {% trans "Redirecting you to the website entry point in 5 seconds." %} -
-
- {% blocktrans %}Or click here if redirection doesn't work.{% endblocktrans %} - -