1
{% extends "news/base_news.html" %}
6
{% block title %}{{ object.title }} - News - {{ block.super }} {% endblock %}
7
{% block body_class %}{{ block.super }} post_detail{% endblock %}
8
{% block body_id %}post_{{ object.id }}{% endblock %}
12
<h2>{{ object.title }}</h2>
13
<p class="other_posts">
14
{% if object.get_previous_by_publish %}
15
<a class="previous" href="{{ object.get_previous_post.get_absolute_url }}">« {{ object.get_previous_post }}</a>
17
{% if object.get_next_by_publish %}
18
| <a class="next" href="{{ object.get_next_post.get_absolute_url }}">{{ object.get_next_post }} »</a>
22
{% post_detail object %}
27
{% get_comment_list for object as comment_list %}
30
<a name="comments"></a>
31
<h3 class="comments_title">Comments</h3>
32
{% for comment in comment_list %}
33
{% if comment.is_public %}
36
<a name="c{{ comment.id }}" href="{{ comment.get_absolute_url }}" title="Permalink to {{ comment.person_name }}'s comment" class="count">{{ forloop.counter }}</a>
37
{% if comment.user_url %}<a href="{{ comment.user_url }}">{{ comment.user_name }}</a>{% else %}{{ comment.user_name }}{% endif %} says...
39
{{ comment.comment|urlizetrunc:"60"|markdown:"safe" }}
40
<p class="date">Posted at {{ comment.submit_date|date:"P" }} on {{ comment.submit_date|date:"F j, Y" }}</p>
46
{% if object.allow_comments %}
47
{% render_comment_form for object %}
49
<div id="comment_form">
50
<h3>Comments are closed.</h3>
51
<p>Comments have been close for this post.</p>