Mercurial > libervia-templates
comparison 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 |
comparison
equal
deleted
inserted
replaced
230:0e69b5843c2f | 231:aa37750c2617 |
---|---|
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].nicknames[0] | default(item.author)}}</span> | 45 <span class="blog__author">{{identities[item.author_jid].nicknames[0] if identities[item.author_jid].nicknames else 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 %} |