# HG changeset patch # User Goffi # Date 1589906453 -7200 # Node ID 1215a6e2385fbe485c74185768c67ff3549e8a64 # Parent 741dae9b0612080c118fa5c0764b72466be01281 components/avatar: fixed avatar if `identity.avatar_basename` is None diff -r 741dae9b0612 -r 1215a6e2385f sat_templates/templates/bulma/components/avatar.html --- a/sat_templates/templates/bulma/components/avatar.html Tue May 19 18:40:02 2020 +0200 +++ b/sat_templates/templates/bulma/components/avatar.html Tue May 19 18:40:53 2020 +0200 @@ -1,7 +1,7 @@ {% macro avatar(jid, class="is-48x48") %} {%- if identities is defined -%} {% set identity = identities[jid] %} - {%- if identity.avatar_basename is defined %} + {%- if identity.avatar_basename %}
diff -r 741dae9b0612 -r 1215a6e2385f sat_templates/templates/default/components/avatar.html --- a/sat_templates/templates/default/components/avatar.html Tue May 19 18:40:02 2020 +0200 +++ b/sat_templates/templates/default/components/avatar.html Tue May 19 18:40:53 2020 +0200 @@ -1,6 +1,6 @@ {% macro avatar(jid, class) %} {%- if identities is defined -%} - {%- if identities[jid].avatar_basename is defined %} + {%- if identities[jid].avatar_basename %} {% else %} {{identities[jid].nicknames[0]|first|upper}}