{% extends 'blog/base.html' %} {% load crispy_forms_tags %} {% load thumbnail %} {% block title %}{{ object.title }}{% endblock title %} {% block pagetitle %}{{ object.title }}{% endblock pagetitle %} {% block meta_description %}{{ object.description }}{% endblock meta_description %} {% block blog_content %}

{{ object.title }}

{{ object.pub_date|date:"F jS, Y" }} at {{ object.pub_date|date:"P" }} ยท By {{ object.author.get_full_name|default:object.author }}
{% if article.photo %}
{% thumbnail article.photo "740x740" as article_photo %}
{% endif %}
{{ object.content|safe }}
{% if object.categories.count %}

Categor{{ object.categories.count|pluralize:"y,ies" }}: {% for cat in object.categories.all %} {{ cat.name }} {% endfor %}
{% endif %} {% if object.enable_comments or object.approved_comments %}

Comments

{% if object.enable_comments %}

{% if login_requirement_met %} Post a Comment {% else %} You must be logged in to post a comment. {% endif %}

{% else %}

Comments are now closed for this article.

{% endif %} {% with object.comment_set.get_approved as comments %} {% include 'blog/comments_list.html' %} {% endwith %}
{% if object.enable_comments and login_requirement_met %}

Post a Comment

{% if form %}
{% csrf_token %} {{ form|crispy }}
{% endif %}
{% endif %} {% endif %}
{% endblock blog_content %}