Mercurial > libervia-templates
comparison sat_templates/templates/bulma/components/avatar.html @ 396:9847e6dbeefa
bulma (call): add group call related templates.
rel: 430
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 15 May 2024 17:39:47 +0200 |
parents | 878e7aee0e4a |
children | 6ae380307ddc |
comparison
equal
deleted
inserted
replaced
395:5072e4a4e261 | 396:9847e6dbeefa |
---|---|
1 {% macro avatar(jid, class="is-48x48") %} | 1 {% macro avatar(jid, class="is-48x48") %} |
2 {%- if identities is defined -%} | 2 {%- if identities is defined -%} |
3 {% set identity = identities.get(jid) %} | 3 {% set identity = identities.get(jid) %} |
4 {%- if identity.avatar %} | 4 {%- if identity.avatar.filename %} |
5 <div class="is-avatar image {{class}}"> | 5 <div class="is-avatar image {{class}}"> |
6 <img src="/cache/common/{{identity.avatar.filename}}"> | 6 <img src="/cache/common/{{identity.avatar.filename}}"> |
7 </div> | 7 </div> |
8 {% else %} | 8 {% else %} |
9 {% set nick = identity.nicknames[0] if identity.nicknames else jid %} | 9 {% set nick = identity.nicknames[0] if identity.nicknames else jid %} |