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 %}