{% comment %} WARNING ------------------ You are entering the world of html email templates. Everything is broken and nothing works. Don't even try to understand it. Just fix what bothers you, OR (probably faster) create email clients for every available platform and create a whole new markup language. Trust me, this is total crap. Avoid it if you can. You have been warned! {% endcomment %} Django Updater
{% if security_issues %} {% elif updates %} {% endif %} {% if security_issues %} {% endif %} {% if updates %} {% endif %}
Your site {{ site }} has pending security updates. {% if security_issues|length > 1 %} Affected packages are {% for package in security_issues %} {{ package.package }}{% if forloop.revcounter > 2 %}, {% elif forloop.revcounter == 2 %} and {% endif %} {% endfor %}. {% else %}The affected package is {{ security_issues.0.package }}.{% endif %}
There are {{ updates|length }} updates available on {{ site }}
{% for package in security_issues %} {% endfor %}

Security Issues

Package: {{ package.package }}
Used Version: {{ package.used_version }}

{% if package.end_of_life %} {{ package.package }} {{ package.used_version }} is no longer supported and won't receive security fixes.
{% endif %} {% for release in package.security_releases %} Release: {{ release.version }}
Fixes:
    {% for fix in release.fixes %}
  • {{ fix }}
  • {% endfor %}
{% endfor %}

Available Updates

{% for package in updates %} {% if package.latest_version != package.used_version %} {{ package.package }}: {{ package.used_version }} -> {{ package.latest_version }}
{% endif %} {% endfor %}