File: ifchanged.tpl

package info (click to toggle)
golang-github-flosch-pongo2.v4 4.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, trixie
  • size: 860 kB
  • sloc: makefile: 3
file content (9 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
{% for comment in complex.comments2 %}
    {% ifchanged %}New comment from another user {{ comment.Author.Name }}{% endifchanged %}
    {% ifchanged comment.Author.Validated %}
        Validated changed to {{ comment.Author.Validated }}
    {% else %}
        Validated value not changed
    {% endifchanged %}
    {% ifchanged comment.Author.Name comment.Date %}Comment's author name or date changed{% endifchanged %}
{% endfor %}