Mercurial > libervia-templates
diff sat_templates/templates/bulma/photo/item.html @ 247:40fccd3b7cf0
updated code to handle blog items following data structure change in backend/Libervia
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 16 Jul 2020 09:08:32 +0200 |
parents | 2b8d18a9df00 |
children | a0e889d73bad |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/photo/item.html Fri Jun 19 17:57:13 2020 +0200 +++ b/sat_templates/templates/bulma/photo/item.html Thu Jul 16 09:08:32 2020 +0200 @@ -29,7 +29,9 @@ <progress class="progress is-info mt-4 has-background-white" value="0" max="100">0%</progress> {% else %} <div id='{{'comments_panel'|cur_gidx}}' class="mt-4 panel-drawer"> - {{ blog.show_items(file.comments, expanded=true, dates_fmt='relative') }} + {% if file.comments %} + {{ blog.show_items(file.comments['items'], expanded=true, dates_fmt='relative') }} + {% endif %} <div class="comment_post mt-4"> {{- textbox.comment_or_login(service=file.comments_service, node=file.comments_node) -}} </div>