{% extends "blog_base.html" %} {% block content %} {# Overwrite the content block from blog_base.html #}
{{ entry.title|title }}
{# Some more info about the post #}
{{ entry.author }} at {{ entry.date|date:"r" }}
{{ entry.content|linebreaks }} {# print the full version here #}
{% for comment in comments %}
{% if comment.mail %} {{ comment.author }} {% else %} {{ comment.author }} {% endif %} said {{ entry.date|timesince:comment.date }} later: {# Use timesince or timeuntil for relative timespans #}
{{ comment.content|linebreaks }} Delete
{% endfor %}

Add a comment

{% if cgi.author or cgi.content %} {# Print an error message if needed #} {# This can be done in the template and not in the script #}

Error, can't post the comment:
{% if not cgi.content %}Field "Text" is missing or empty.
{% endif %} {% if not cgi.author %}Field "Author" is missing or empty.
{% endif %}

{% endif %}

Author:

Email (optional):

Text (no html allowed):

{% endblock %} {% block morecss %} {# Add some more stylesheets #} .blog_entry_title { color:#1F20AF; font-weight:bold; font-size:1.5em; margin-top:25px; } .blog_entry_small { font-size:0.8em; color:grey; } .blog_entry_text { padding-left:10px; } .morelink { display:block; text-align:right; font-size:0.7em; } .blog_comment { font-size:0.8em; margin-top:25px; } .blog_comment_title { color:#1F20AF; font-weight:bold; } .blog_comment_text { padding-left:10px; } {% endblock %}