Mercurial > libervia-templates
comparison default/blog/articles.html @ 20:8fa2fd2e928e
default: added i18n support
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 21 May 2017 16:10:44 +0200 |
parents | 8cdcbe0d7dee |
children | f371bc50ea45 |
comparison
equal
deleted
inserted
replaced
19:422c54e0204a | 20:8fa2fd2e928e |
---|---|
9 {% include 'blog/item.html' %} | 9 {% include 'blog/item.html' %} |
10 {% if not comments %}</div>{% endif %} | 10 {% if not comments %}</div>{% endif %} |
11 | 11 |
12 {# we recursively display comments for all comments nodes (usually there's only one) #} | 12 {# we recursively display comments for all comments nodes (usually there's only one) #} |
13 {% for comments_items in item.comments_items_list %} | 13 {% for comments_items in item.comments_items_list %} |
14 <button class="comments_btn" onclick="document.getElementById('{{comments_panel|next_gidx}}').classList.toggle('show')">show comments ({{comments_items|count}})</button> | 14 <button class="comments_btn" onclick="document.getElementById('{{comments_panel|next_gidx}}').classList.toggle('show')">{% trans %}show comments{% endtrans %} ({{comments_items|count}})</button> |
15 <div id="{{comments_panel|cur_gidx}}" class="comments_panel"> | 15 <div id="{{comments_panel|cur_gidx}}" class="comments_panel"> |
16 {% if allow_commenting %} | 16 {% if allow_commenting %} |
17 <div class="comment_post"> | 17 <div class="comment_post"> |
18 {{ comment.comment(service=comments_items.service, node=comments_items.node) }} | 18 {{ comment.comment(service=comments_items.service, node=comments_items.node) }} |
19 </div> | 19 </div> |