{% extends 'accounts/base.html' %} {% load i18n %} {% block title %} {% if user.is_authenticated %} {% trans "Access denied" %} {% else %} {{ title }} {% endif %} {% endblock %} {% block accounts_content %} {# User is already authenticated, so do not show anything about authentication or registration #} {% if user.is_authenticated %}

{% trans "Access denied" %}

{% blocktrans trimmed with name=user.display_name %} You are already logged in as {{ name }}. Thus, you cannot perform this operation. {% endblocktrans %}

{% trans "You will be redirected in a few seconds…" %}


{% else %} {% block accounts_actionblock %}{% endblock %} {% endif %} {% endblock %}