Mercurial > libervia-templates
comparison sat_templates/templates/bulma/blog/item.html @ 268:ce2fd7a3911d
bulma (blog/item): use nickname when available instead of jid
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Aug 2020 08:30:11 +0200 |
parents | ae365c036a58 |
children | e982a05d43b1 |
comparison
equal
deleted
inserted
replaced
267:5a1d7c2d965a | 268:ce2fd7a3911d |
---|---|
36 </h4> | 36 </h4> |
37 {% endif %} | 37 {% endif %} |
38 <div class="content"> | 38 <div class="content"> |
39 <p class="subtitle is-6 has-text-grey"> | 39 <p class="subtitle is-6 has-text-grey"> |
40 {% set published = item.published|date_fmt(fmt=dates_format) %} | 40 {% set published = item.published|date_fmt(fmt=dates_format) %} |
41 <strong>{{item.author}}</strong> <small>{{published}}</small> | 41 {% if Identities is defined %} |
42 <strong>{{identities[item.author_jid].nicknames[0] if identities[item.author_jid].nicknames else item.author}}</strong> | |
43 {% else %} | |
44 <strong>{{item.author}}</strong> | |
45 {% endif %} | |
46 <small>{{published}}</small> | |
42 {% if item.tags %} | 47 {% if item.tags %} |
43 <small class="labels"> | 48 <small class="labels"> |
44 {% if tags_http_uri is defined %} | 49 {% if tags_http_uri is defined %} |
45 {% for tag in item.tags %} | 50 {% for tag in item.tags %} |
46 <a href="{{tags_http_uri[tag]}}"><span class="tag is-rounded">{{tag}}</span></a> | 51 <a href="{{tags_http_uri[tag]}}"><span class="tag is-rounded">{{tag}}</span></a> |