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