aboutsummaryrefslogtreecommitdiffstats
path: root/templates/aggregator
diff options
context:
space:
mode:
Diffstat (limited to 'templates/aggregator')
-rw-r--r--templates/aggregator/base.html1
-rw-r--r--templates/aggregator/post_detail.html12
2 files changed, 13 insertions, 0 deletions
diff --git a/templates/aggregator/base.html b/templates/aggregator/base.html
index 1f3ec37..6a37f5a 100644
--- a/templates/aggregator/base.html
+++ b/templates/aggregator/base.html
@@ -5,6 +5,7 @@
<title>ryuslash</title>
<link href="/static/main.css" type="text/css" rel="stylesheet" />
<link rel="shortcut icon" href="/static/favicon.png" />
+ {% block head %}{% endblock %}
</head>
<body>
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 %}