...

Text file src/github.com/noirbizarre/gonja/ext/django/testData/statements/ifchanged.tpl

Documentation: github.com/noirbizarre/gonja/ext/django/testData/statements

     1{% for comment in complex.comments2 %}
     2    {% ifchanged %}New comment from another user {{ comment.Author.Name }}{% endifchanged %}
     3    {% ifchanged comment.Author.Validated %}
     4        Validated changed to {{ comment.Author.Validated }}
     5    {% else %}
     6        Validated value not changed
     7    {% endifchanged %}
     8    {% ifchanged comment.Author.Name comment.Date %}Comment's author name or date changed{% endifchanged %}
     9{% endfor %}

View as plain text