From 61665d370c72c38688437b32ca778bf3b810f5e6 Mon Sep 17 00:00:00 2001 From: Situphen Date: Mon, 7 Oct 2024 23:27:28 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liore=20l'accessibilit=C3=A9=20de=20l'a?= =?UTF-8?q?vatar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/header.html | 1 + templates/misc/avatar.part.html | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/header.html b/templates/header.html index f81103d9bc..e2630bf64b 100644 --- a/templates/header.html +++ b/templates/header.html @@ -345,6 +345,7 @@

{% trans "Alertes de modération" %}

{% endif %} > {% avatar profile %} + Mon profil {{ user.username }} {% endwith %} diff --git a/templates/misc/avatar.part.html b/templates/misc/avatar.part.html index b653d14fb3..39e3abb462 100644 --- a/templates/misc/avatar.part.html +++ b/templates/misc/avatar.part.html @@ -2,10 +2,8 @@ {# Template used by the templatetag "avatar" defined in zds/utils/templatetags/profile.py #} -{% captureas alt_text %}Avatar de {{ username }}{% endcaptureas %} - {% if avatar_url %} - + {% else %} - {{ alt_text }} + {% endif %}