{% 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 %}
{% trans "Comments" %}
{% with object.get_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 date" %} {{ comment.submit_date|date:"l d F Y H:i" }}
{{ comment.comment }}
{% endfor %}
{% if not object.comment_enabled %}{% trans "Comments are closed." %}
{% endif %} {% else %} {% if object.comment_enabled %}{% trans "Not yet comments !" %}
{% endif %} {% endif %} {% endwith %}