annotate default/blog/articles.html @ 8:7353e5c54359

blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
author Goffi <goffi@goffi.org>
date Mon, 17 Apr 2017 20:46:11 +0200
parents 9a31d2c02f47
children 8b5615a1bf3d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {% extends 'base/base.html' %}
8
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
2 {% import 'input/comments.html' as comments %}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
3
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
4
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
5 {% macro show_items(items) %}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
6 {# show items and comments items if present after each item,
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
7 then post form if allow_commenting is set #}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
8 {% for item in items %}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
9 {% include 'blog/item.html' %}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
10 {% for comments_items in item.comments_items_list %}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
11 {% if allow_commenting %}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
12 <div id="comment_post">
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
13 {{ comments.comment(service=comments_items.service, node=comments_items.node) }}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
14 </div>
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
15 {% endif %}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
16 <div class="comments">
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
17 {{show_items(comments_items)}}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
18 </div>
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
19 {% endfor %}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
20 {% endfor %}
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
21 {% endmacro %}
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
22
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
23 {% block body %}
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
24 <div id="blog_items">
8
7353e5c54359 blog/articles: comments are now displayed if chained, and allow_commenting activate commenting form
Goffi <goffi@goffi.org>
parents: 0
diff changeset
25 {{ show_items(items) }}
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
26 </div>
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
27 {% endblock body %}