{% extends "base.html" %} {% load i18n comments comments_xtd %} {% block title %}{{ block.super }}Blog - {% trans "Comment List" %}{% endblock %} {% block header %}{{ block.super }}{% trans "Blog Comment List" %}{% endblock %} {% block content %}

{% trans "List of comments for blog.story and blog.quote with pagination, produced by the following entry in the blog/urls.py file:" %}

    url(r'^comments$', 
        ListView.as_view(
            queryset=XtdComment.objects.for_app_models("blog.story", 
                                                       "blog.quote"), 
            template_name="django_comments_xtd/blog/comment_list.html",
            paginate_by=5),
        name='blog-comments'),
  
{% for comment in object_list %}
{% if comment.user.is_staff %}
permalink
{{ comment.submit_date|date:"DATETIME_FORMAT" }}
{{ comment.name }}
{% endif %}
{% trans "Comment for:" %} {{ comment.content_object }}
{% if comment.is_removed %} -- {% trans "Inappropriate comments like this one are removed." %} -- {% else %} {% autoescape off %} {{ comment.comment|render_markup_comment }} {% endautoescape %} {% endif %}
{% if not comment.user.is_staff %}
permalink
{{ comment.submit_date|date:"DATETIME_FORMAT" }}
{{ comment.name }}
{% endif %}
{% endfor %} {% if is_paginated %}
{% if page_obj.has_previous %} {% trans "newer" %}  {% endif %} {% if page_obj.has_next %} {% trans "older" %} {% endif %}
{% endif %}

{% trans "Blog" %}

{% endblock %}