view default/components/avatar.html @ 129:ca42dc037bbf

file (discover): new discovery page: the discovery page will show service, own devices and roster contact devices offering file sharing. An extra field allow to enter free jid. Added a small message in photo/discover.html has photo album discovery is not yes implemented. New block and images macros.
author Goffi <goffi@goffi.org>
date Sat, 24 Mar 2018 11:16:14 +0100 (2018-03-24)
parents 5992b774a6a4
children 0a0d9a953d98
line wrap: on
line source
{% macro avatar(jid) %}
    {%- if identities is defined -%}
        {%- if identities[jid].avatar_basename is defined %}
            <img class="avatar" src="{{cache_path}}{{identities[jid].avatar_basename}}">
        {% else %}
            <span class="avatar generated">{{author|first|upper}}</span>
        {%- endif -%}
    {%- endif -%}
{% endmacro %}