{% extends "zinnia/base.html" %} {% load i18n tagging_tags comments zinnia_tags %} {% block title %}{{ object.title }}{% endblock %} {% block meta-description %}{% if object.excerpt %}{{ object.excerpt|striptags }}{% else %}{{ object.content|striptags|truncatewords:100 }}{% endif %}{% endblock %} {% block link %} {% endblock %} {% block content %}
{% with object.html_content|safe as object_content %} {% include "zinnia/_entry_detail.html" %} {% endwith %}

{% with object.next_entry as next_entry %} {% if next_entry %}

{% trans "Next entry" %}

{% endif %} {% endwith %} {% with object.previous_entry as previous_entry %} {% if previous_entry %}

{% trans "Previous entry" %}

{% endif %} {% endwith %} {% if object.related_published_set %}

{% trans "Related entries" %}

{% endif %}

{% trans "Similar entries" %}

{% get_similar_entries 5 %}

{% trans "Comments" %}

{% with object.comments as comment_list %} {% if comment_list.count %}
    {% for comment in comment_list %} {% endfor %}
{% if not object.comment_enabled %}

{% trans "Comments are closed." %}

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

{% trans "No comments yet." %}

{% else %}

{% trans "Comments are closed." %}

{% endif %} {% endif %} {% endwith %}

{% trans "Pingbacks" %}

{% with object.pingbacks as pingback_list %} {% if pingback_list.count %}
    {% for pingback in pingback_list %}
  1. {{ pingback.user_name }} {% trans "on date" %} {{ pingback.submit_date|date:"l d F Y" }}
    {{ pingback.comment }}
  2. {% endfor %}
{% endif %} {% if object.pingback_enabled %}

{% trans "Pingbacks are open." %}

{% else %}

{% trans "Pingbacks are closed." %}

{% endif %} {% endwith %}

{% trans "Trackbacks" %}

{% with object.trackbacks as trackback_list %} {% if trackback_list.count %}
    {% for trackback in trackback_list %}
  1. {{ trackback.user_name }} {% trans "on date" %} {{ trackback.submit_date|date:"l d F Y" }}
    {{ trackback.comment }}
  2. {% endfor %}
{% endif %} {% if object.pingback_enabled %}

{% trans "Trackback URL" %}

{% endif %} {% endwith %}
{% if object.comment_enabled %}
{% render_comment_form for object %}
{% endif %} {% endblock %}