{% extends "zinnia/base.html" %} {% load i18n comments zinnia %} {% load cycle from future %} {% block title %}{{ object.title }} | {{ block.super }}{% endblock title%} {% block meta-description %}{{ object.excerpt|safe }}{% endblock meta-description %} {% block meta-keywords %}{% if object.tags %}{{ object.tags }}{% else %}{{ block.super }}{% endif %}{% endblock meta-keywords %} {% block link %} {{ block.super }} {% with previous_entry=object.previous_entry %}{% if previous_entry %} {% endif %}{% endwith %} {% with next_entry=object.next_entry %}{% if next_entry %} {% endif %}{% endwith %} {% with year=object.creation_date|date:"Y" month=object.creation_date|date:"m" day=object.creation_date|date:"d" %} {% endwith %} {% endblock link %} {% block body-class %}entry entry-{{ object.pk }}{% if object.featured %} featured{% endif %} year-{{ object.creation_date|date:"Y" }} month-{{ object.creation_date|date:"m" }} week-{{ object.creation_date|date:"W" }} day-{{ object.creation_date|date:"d" }}{% endblock body-class %} {% block content %} {% block entry-content %} {% include object.content_template with object_content=object.html_content %} {% endblock entry-content %} {# Post Comments #} {% block entry-comments %}

{% trans "Comments" %}

{% if object.comment_count %} {% with comment_list=object.comments %} {% block comments-loop %}
    {% for comment in comment_list %}
  1. {% block comment-image %} {{ comment.name }} {% endblock comment-image %} {% block comment-info %} {% if comment.url %} {{ comment.name }} {% else %} {{ comment.name }} {% endif %} {% endblock comment-info %}
    {% block comment-content %} {{ comment.comment|linebreaks }} {% endblock comment-content %}
  2. {% endfor %}
{% endblock comments-loop %} {% endwith %} {% if not object.comments_are_open %}

{% trans "Comments are closed." %}

{% endif %} {% else %} {% if object.comments_are_open %}

{% trans "No comments yet." %}

{% else %}

{% trans "Comments are closed." %}

{% endif %} {% endif %}
{% endblock entry-comments %} {% block entry-comments-form %} {% if object.comments_are_open %}

{% trans "Add your comment" %}

{% render_comment_form for object %}
{% endif %} {% endblock entry-comments-form %} {% endblock content %} {% block admin-tools %} {% if perms.zinnia.change_entry %}
  • {% trans "Edit the entry" %}
  • {% endif %} {% endblock admin-tools %}