- {% if request.sso_username %}
+ {% if request.signon_identities %}
{% if visitor %}
-{% blocktrans with request_user_username=request.user.username visitor_a_link=visitor.a_link %}You
-are currently logged in with
-
SSO username
-
{{request_user_username}}, and recognized as {{visitor_a_link}}.{% endblocktrans %}
+
+{% blocktrans with visitor_a_link=visitor.a_link %}
+You are currently logged in, and recognized as {{visitor_a_link}}.
+{% endblocktrans %}
+
{% else %}
+
{% url 'dm_claim' as dm_claim_url %}
{% blocktrans with request_user_username=request.user.username %}You
-are currently logged in with
-
SSO username
-
{{request_user_username}}, but not mapped to any person in the site.
+are currently logged in, but not mapped to any person in the site.
If you are a Debian Maintainer, you can try to correct the situation using the
claim interface.{% endblocktrans %}
+
+
{% trans "You are logged in as:" %}
+
+
+ {% endif %}
+
{% else %}
{% blocktrans %}You are not currently logged in. See the
Single Sign-On page
for details.{% endblocktrans %}
+
{% endif %}