Use <div> for avatars

<img> is displayed as an error without src, in Chrome

Fixes #222
This commit is contained in:
Bat 2018-09-29 18:29:22 +01:00
parent 05f3ecabd6
commit 6f8630df2e

View file

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