diff options
author | Tom Willemsen | 2012-03-13 00:31:43 +0100 |
---|---|---|
committer | Tom Willemsen | 2012-03-13 00:31:43 +0100 |
commit | 1ea700b294025e118fa3c48c0fbf2b63dc106597 (patch) | |
tree | 6bcdd337269d2abe9e12b118f2c47b0b8f39a0c1 /templates/aggregator/post_detail.html | |
parent | 2eb133ff56911eec60997e882fae63e961a291f3 (diff) | |
download | ryuslash.org-1ea700b294025e118fa3c48c0fbf2b63dc106597.tar.gz ryuslash.org-1ea700b294025e118fa3c48c0fbf2b63dc106597.zip |
Add simple comments
Diffstat (limited to 'templates/aggregator/post_detail.html')
-rw-r--r-- | templates/aggregator/post_detail.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/aggregator/post_detail.html b/templates/aggregator/post_detail.html index eb39f95..574d9b1 100644 --- a/templates/aggregator/post_detail.html +++ b/templates/aggregator/post_detail.html @@ -1,8 +1,20 @@ {% extends "aggregator/base.html" %} +{% load comments %} + +{% block head %} +<link href="/static/comments.css" type="text/css" rel="stylesheet" /> +{% endblock %} {% block content %} {% include "aggregator/post_content.html" with post=object %} +{% get_comment_count for object as comment_count %} +{% if comment_count > 0 %} + {% render_comment_list for object %} +{% endif %} + +{% render_comment_form for object %} + <div id="pager"> {% with next=object.get_next_by_updated previous=object.get_previous_by_updated %} {% if previous %} |