{# A more complex template using pongo2 (fully django-compatible template) #} My blog page

Blogpost

{{ complex.post.Text|safe }}

Comments

{% for comment in complex.comments %}

{{ forloop.Counter }}. Comment ({{ forloop.Revcounter}} comment{{ forloop.Revcounter|pluralize:"s" }} left)

From: {{ comment.Author.Name }} ({{ comment.Author.Validated|yesno:"validated,not validated,unknown validation status" }})

{% if complex.is_admin(comment.Author) %}

This user is an admin (verify: {{ comment.Author.Is_admin }})!

{% else %}

This user is not admin!

{% endif %}

Written {{ comment.Date }}

{{ comment.Text|striptags }}

{% endfor %}