Use <div> for avatars
<img> is displayed as an error without src, in Chrome Fixes #222
This commit is contained in:
parent
05f3ecabd6
commit
6f8630df2e
@ -88,10 +88,10 @@
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
{% macro avatar(user, size="small", pad=true) %}
|
||||
<img
|
||||
<div
|
||||
class="avatar {{ size }} {% if pad %}padded{% endif %}"
|
||||
style="background-image: url('{{ user.avatar }}');"
|
||||
title="{{ "{{ name }}'s avatar" | _(name=user.name) }}"
|
||||
aria-label="{{ "{{ name }}'s avatar" | _(name=user.name) }}"
|
||||
>
|
||||
></div>
|
||||
{% endmacro %}
|
||||
|
Loading…
Reference in New Issue
Block a user