diff -r 9a77edda77b7 -r fda1c66b25f9 project/templates/blog/post_detail.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/project/templates/blog/post_detail.html Fri Oct 30 15:09:12 2009 +0530 @@ -0,0 +1,77 @@ +{% extends "blog/base_blog.html" %} + + +{% block title %}{{ object.title }}{% endblock %} +{% block body_class %}{{ block.super }} post_detail{% endblock %} +{% block body_id %}post_{{ object.id }}{% endblock %} + + +{% block content_title %} +

{{ object.title }}

+ +{% endblock %} + + +{% block content %} + {% load blog markup comments tagging_tags %} + +

{{ object.title }}

+

{{ object.publish|date:"j F Y" }}

+ +
+ {{ object.body|markdown:"safe" }} +
+ + {% tags_for_object object as tag_list %} + {% if tag_list %} +

Related tags: + {% for tag in tag_list %} + {{ tag }}{% if not forloop.last %}, {% endif %} + {% endfor %} +

+ {% endif %} + + {% get_comment_list for object as comment_list %} + {% if comment_list %} +
+ +

Comments

+ {% for comment in comment_list %} + {% if comment.is_public %} +
+
+ {{ forloop.counter }} + {% if comment.user_url %}{{ comment.user_name }}{% else %}{{ comment.user_name }}{% endif %} says... +
+ {{ comment.comment|urlizetrunc:"60"|markdown:"safe" }} +

Posted at {{ comment.submit_date|date:"P" }} on {{ comment.submit_date|date:"F j, Y" }}

+
+ {% endif %} + {% endfor %} +
+ {% endif %} + {% if user.is_authenticated %} + {% if object.allow_comments %} +
+ {% render_comment_form for object %} +
+ {% else %} +
+

Comments are closed.

+

Comments have been close for this post.

+
+ {% endif %} + {% else %} +
+

Comments are closed.

+

Please login in to comment.

+
+ {% endif %} +{% endblock %}