Mercurial > libervia-templates
comparison 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 |
comparison
equal
deleted
inserted
replaced
246:1928ba66c194 | 247:40fccd3b7cf0 |
---|---|
27 </div> | 27 </div> |
28 {% if uploading %} | 28 {% if uploading %} |
29 <progress class="progress is-info mt-4 has-background-white" value="0" max="100">0%</progress> | 29 <progress class="progress is-info mt-4 has-background-white" value="0" max="100">0%</progress> |
30 {% else %} | 30 {% else %} |
31 <div id='{{'comments_panel'|cur_gidx}}' class="mt-4 panel-drawer"> | 31 <div id='{{'comments_panel'|cur_gidx}}' class="mt-4 panel-drawer"> |
32 {{ blog.show_items(file.comments, expanded=true, dates_fmt='relative') }} | 32 {% if file.comments %} |
33 {{ blog.show_items(file.comments['items'], expanded=true, dates_fmt='relative') }} | |
34 {% endif %} | |
33 <div class="comment_post mt-4"> | 35 <div class="comment_post mt-4"> |
34 {{- textbox.comment_or_login(service=file.comments_service, node=file.comments_node) -}} | 36 {{- textbox.comment_or_login(service=file.comments_service, node=file.comments_node) -}} |
35 </div> | 37 </div> |
36 </div> | 38 </div> |
37 {% endif %} | 39 {% endif %} |