Ticket #11046: 11046-ifchanged-docs.patch

File 11046-ifchanged-docs.patch, 560 bytes (added by Armin Ronacher, 16 years ago)
  • docs/ref/templates/builtins.txt

    diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
    index e06d28d..a4acfbb 100644
    a b will be displayed if the value has not changed::  
    365365        {% for match in matches %}
    366366            <div style="background-color:
    367367                {% ifchanged match.ballot_id %}
    368                     {% cycle red,blue %}
     368                    {% cycle "red" "blue" %}
    369369                {% else %}
    370370                    grey
    371371                {% endifchanged %}
Back to Top