commit
eee552dd56
@ -1,38 +1,39 @@
|
|||||||
<section id="comments" class="themeform">
|
<section id="comments" class="themeform">
|
||||||
{% load blog_tags %}
|
{% load blog_tags %}
|
||||||
{% load comments_tags %}
|
{% load comments_tags %}
|
||||||
{% comment %}<h3 class="heading">{{ comment_count }} 条回复</h3>{% endcomment %}
|
{% load cache %}
|
||||||
|
|
||||||
<ul class="comment-tabs group">
|
<ul class="comment-tabs group">
|
||||||
<li class="active"><a href="#commentlist-container"><i
|
<li class="active"><a href="#commentlist-container"><i
|
||||||
class="fa fa-comments-o"></i>评论<span>{{ comment_count }}</span></a></li>
|
class="fa fa-comments-o"></i>评论<span>{{ comment_count }}</span></a></li>
|
||||||
{% comment %}<li class=""><a href="#pinglist-container"><i class="fa fa-share"></i>引用<span>0</span></a></li>{% endcomment %}
|
|
||||||
</ul>
|
</ul>
|
||||||
{% if article_comments %}
|
{% if article_comments %}
|
||||||
<div id="commentlist-container" class="comment-tab" style="display: block;">
|
{% cache 36000 article_comments article.id %}
|
||||||
|
<div id="commentlist-container" class="comment-tab" style="display: block;">
|
||||||
<ol class="commentlist">
|
|
||||||
{% query article_comments parent_comment=None as parent_comments %}
|
|
||||||
{% for comment in parent_comments %}
|
|
||||||
{% show_comment_item comment False %}
|
|
||||||
|
|
||||||
{% parse_commenttree article_comments comment as childcomments %}
|
<ol class="commentlist">
|
||||||
{% if childcomments %}
|
{% query article_comments parent_comment=None as parent_comments %}
|
||||||
<ul class="children">
|
{% for comment in parent_comments %}
|
||||||
{% for child in childcomments %}
|
{% show_comment_item comment False %}
|
||||||
{% show_comment_item child True %}
|
|
||||||
|
|
||||||
{% endfor %}
|
{% parse_commenttree article_comments comment as childcomments %}
|
||||||
</ul><!-- .children -->
|
{% if childcomments %}
|
||||||
{% endif %}
|
<ul class="children">
|
||||||
|
{% for child in childcomments %}
|
||||||
|
{% show_comment_item child True %}
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
</ul><!-- .children -->
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
</ol><!--/.commentlist-->
|
{% endfor %}
|
||||||
|
|
||||||
|
</ol><!--/.commentlist-->
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{% endcache %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Loading…
Reference in new issue