forked from liangliangyy/DjangoBlog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ad5d34
commit a448e8b
Showing
5 changed files
with
54 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,45 @@ | ||
<section id="comments" class="themeform"> | ||
{% load blog_tags %} | ||
{% load comments_tags %} | ||
{% load cache %} | ||
<dev> | ||
<section id="comments" class="themeform"> | ||
{% load blog_tags %} | ||
{% load comments_tags %} | ||
{% 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> | ||
<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> | ||
|
||
</ul> | ||
{% if article_comments %} | ||
{% cache 36000 article_comments article.id %} | ||
</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_item in parent_comments %} | ||
{# {% query article_comments parent_comment=None as parent_comments %}#} | ||
{% for comment_item in p_comments %} | ||
|
||
{% with 0 as depth %} | ||
{% include "comments/tags/comment_item_tree.html" %} | ||
{% endwith %} | ||
{% endfor %} | ||
|
||
</ol><!--/.commentlist--> | ||
|
||
<div class="navigation"> | ||
<nav class="nav-single"> | ||
{% if comment_prev_page_url %} | ||
<div class="nav-previous"> | ||
<span><a href="{{ comment_prev_page_url }}" rel="prev"><span | ||
class="meta-nav">←</span> 上一页</a></span> | ||
</div> | ||
{% endif %} | ||
{% if comment_next_page_url %} | ||
<div class="nav-next"> | ||
<span><a href="{{ comment_next_page_url }}" rel="next">下一页 <span | ||
class="meta-nav">→</span></a></span> | ||
</div> | ||
{% endif %} | ||
</nav> | ||
</div> | ||
<br/> | ||
</div> | ||
{% endcache %} | ||
{% endif %} | ||
</section> | ||
{% endif %} | ||
</section> | ||
|
||
</dev> |