diff sat_templates/templates/default/blog/item.html @ 231:aa37750c2617

theme (default): various fixes: - added missing </tr> in event/admin.html - fixed used of identities - uses `class` from kwargs in input/field.html
author Goffi <goffi@goffi.org>
date Tue, 19 May 2020 00:04:47 +0200
parents 3195484abd82
children 40fccd3b7cf0
line wrap: on
line diff
--- a/sat_templates/templates/default/blog/item.html	Tue May 19 00:02:34 2020 +0200
+++ b/sat_templates/templates/default/blog/item.html	Tue May 19 00:04:47 2020 +0200
@@ -42,7 +42,7 @@
                 {% if avatar is defined %}
                     {{ avatar.avatar(item.author_jid, "avatar--float-left") }}
                 {% endif %}
-                <span class="blog__author">{{identities[item.author_jid].nicknames[0] | default(item.author)}}</span>
+                <span class="blog__author">{{identities[item.author_jid].nicknames[0] if identities[item.author_jid].nicknames else item.author}}</span>
             {% else %}
                 <span class="blog__author">{{item.author}}</span>
             {% endif %}