{% extends "zinnia/base.html" %} {% load i18n 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 meta-keywords %}{% if object.tags %}{{ object.tags }}{% else %}{{ block.super }}{% endif %}{% endblock %} {% block link %} {{ block.super }} {% with object.previous_entry as previous_entry %}{% if previous_entry %} {% endif %}{% endwith %} {% with object.next_entry as next_entry %}{% if next_entry %} {% endif %}{% endwith %} {% if object.short_url %} {% endif %} {% with object.creation_date|date:"Y" as year %} {% with object.creation_date|date:"m" as month %} {% with object.creation_date|date:"d" as day %} {% endwith %} {% endwith %} {% endwith %} {% endblock %} {% block content %}
{% trans "Pingbacks are open." %}
{% else %}{% trans "Pingbacks are closed." %}
{% endif %} {% endwith %}
{% trans "Comments" %}
{% with object.comments as comment_list %} {% if comment_list.count %}{% for comment in comment_list %}-
{% if comment.url %}
{{ comment.user_name }}
{% else %}
{{ comment.user_name }}
{% endif %}
{% trans "on" %} {{ comment.submit_date|date:"SHORT_DATETIME_FORMAT" }}
{{ comment.comment|linebreaks }}
{% endfor %}
{% 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 %} {% endwith %}