Skip to content

Commit

Permalink
Merge branch 'dev' into remove_update_index_date
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D authored Oct 13, 2024
2 parents d0ca0cd + 61665d3 commit 9b40a4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ <h1 class="dropdown-title">{% trans "Alertes de modération" %}</h1>
{% endif %}
>
{% avatar profile %}
<span class="visuallyhidden">Mon profil</span>
<span class="username label">{{ user.username }}</span>
</a>
{% endwith %}
Expand Down
6 changes: 2 additions & 4 deletions templates/misc/avatar.part.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
<img src="{{ avatar_url }}" alt="{{ alt_text }}" class="avatar" itemprop="image" aria-hidden="true">
<img src="{{ avatar_url }}" alt="" class="avatar" itemprop="image" aria-hidden="true">
{% else %}
<canvas width="{{ avatar_size }}" height="{{ avatar_size }}" data-jdenticon-value="{{ username }}" class="avatar">{{ alt_text }}</canvas>
<canvas width="{{ avatar_size }}" height="{{ avatar_size }}" data-jdenticon-value="{{ username }}" class="avatar" aria-hidden="true"></canvas>
{% endif %}

0 comments on commit 9b40a4f

Please sign in to comment.