mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-22 03:21:01 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue