diff options
Diffstat (limited to 'bn_django/journal/templates/journal/entry_detail.html')
-rw-r--r-- | bn_django/journal/templates/journal/entry_detail.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/bn_django/journal/templates/journal/entry_detail.html b/bn_django/journal/templates/journal/entry_detail.html new file mode 100644 index 0000000..45edd4b --- /dev/null +++ b/bn_django/journal/templates/journal/entry_detail.html @@ -0,0 +1,31 @@ +{% extends "journal/base.html" %} +{# {% load markup %} #} +{% load comments %} +{% block path %}{{ block.super }} + »<a href="../{{ object.slug }}"> {{ object.title }}</a> +{% endblock %} + +{% block title %} +{% if object.title %}{{ object.title }}{% else %}[Untitled Entry]{% endif %} +{% endblock %} + +{% block content %}<br /> +{% if object %}<div class="right_stuff"> +<p class="date">Entry dated {{ object.date }}, +{% if object.author %}<br />written by {{ object.author }},{% endif %} +{% if object.last_edited %}<br />last edited {{ object.last_edited }}.{% endif %} +</div> +<p class="journal_entry">{{ object.html_content|safe }}</p> +{% else %} +<p>This is not the entry you are looking for.</p> +{% endif %} +{% endblock %} + +{% block commentary %} +<div class='content' id='commentary'> +<h3>Post a comment</h3> +{% render_comment_form for object %} +{% get_comment_list for object as comments %} +{% include "comment_list" %} +</div> +{% endblock %} |