sane-project-backends/tools/NEWS.template.jinja

31 wiersze
552 B
Django/Jinja

{% for section, _ in sections|dictsort(by='key') %}
{% set underline = "-" %}
{% if section %}
----- {{section}}
{% endif %}
{% if sections[section] %}
{% for category, val in definitions|dictsort if category in sections[section]%}
### {{ definitions[category]['name'] }}
{% for text, values in sections[section][category]|dictsort(by='value') %}
- {{ text }}
{% endfor %}
{% if sections[section][category]|length == 0 %}
No significant changes.
{% else %}
{% endif %}
{% endfor %}
{% else %}
No significant changes.
{% endif %}
{% endfor %}