Mercurial > libervia-templates
comparison sat_templates/templates/default/blog/item.html @ 228:3195484abd82
updated identities/avatar use, following backend changes
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 19 Apr 2020 22:48:57 +0200 |
parents | 178f55b825b7 |
children | aa37750c2617 |
comparison
equal
deleted
inserted
replaced
227:f8f9019425c3 | 228:3195484abd82 |
---|---|
40 <div class="blog__metadata"> | 40 <div class="blog__metadata"> |
41 {% if identities is defined %} | 41 {% if identities is defined %} |
42 {% if avatar is defined %} | 42 {% if avatar is defined %} |
43 {{ avatar.avatar(item.author_jid, "avatar--float-left") }} | 43 {{ avatar.avatar(item.author_jid, "avatar--float-left") }} |
44 {% endif %} | 44 {% endif %} |
45 <span class="blog__author">{{identities[item.author_jid].nick | default(item.author)}}</span> | 45 <span class="blog__author">{{identities[item.author_jid].nicknames[0] | default(item.author)}}</span> |
46 {% else %} | 46 {% else %} |
47 <span class="blog__author">{{item.author}}</span> | 47 <span class="blog__author">{{item.author}}</span> |
48 {% endif %} | 48 {% endif %} |
49 {% set published = item.published|date_fmt(fmt=dates_format) %} | 49 {% set published = item.published|date_fmt(fmt=dates_format) %} |
50 {% if item_http_uri %} | 50 {% if item_http_uri %} |