{% extends "base.html" %} {% load static %} {% block title %}blog entry{% endblock %} {% block content %}

{% if user.is_authenticated %} {% if user.id == post.author_profile.user.id %} {% else %}

You are not authorized to edit/delete this blog! (user.id: {{ user.id }}, post.author_profile.user.id: {{ post.author_profile.user.id }})

{% endif %} {% endif %}

{{ post.title }}

Published {{ post.publish }} by {% if post.author_profile %} {{ post.author_profile.user.get_full_name }} {% else %} Author information not available {% endif %}


{{ post.body|ljust:10|striptags|safe|linebreaksbr }}
{% endblock %}