+ {% if user.is_authenticated %}
+
+ {% blocktrans trimmed with username=request.user.username %}
+ You are authenticated as {{ username }}, but are not authorized to
+ access this page. Would you like to login to a different account,
+ or with a higher permission mask?
+ {% endblocktrans %}
+
+ {% endif %}
- {% if request.resolver_match.view_name == 'admin:login' %}
-
- {% blocktrans trimmed %}
- You must be logged with a staff account with the higher mask to access Django Admin.
- {% endblocktrans %}
+ {% if request.resolver_match.view_name == 'admin:login' %}
+
+ {% blocktrans trimmed %}
+ You must be logged with a staff account with the higher mask to access Django Admin.
+ {% endblocktrans %}
+
+ {% endif %}
+
+
- {% endif %}
-
-
+
{% endblock %}