Ticket #10704: ifchanged-else-docs.diff
File ifchanged-else-docs.diff, 738 bytes (added by , 16 years ago) |
---|
-
docs/ref/templates/builtins.txt
330 330 {% endifchanged %} 331 331 {% endfor %} 332 332 333 The ``ifchanged`` tag can also take an optional ``{% else %}`` clause that 334 will be displayed if the value has not changed: 335 336 {% for match in matches %} 337 <div style="background-color: 338 {% ifchanged match.ballot_id %} 339 {% cycle red,blue %} 340 {% else %} 341 grey 342 {% endifchanged %} 343 ">{{ match }}</div> 344 {% endfor %} 345 333 346 .. templatetag:: ifequal 334 347 335 348 ifequal