app-MAIL-temp/templates/emails/transactional/hibp-new-breaches.txt.jinja2

25 lines
853 B
Django/Jinja

{{ breached_aliases|count }} of your aliases are found in data breaches.
{% for alias in breached_aliases[:10] %}
{{ loop.index }} ) {{ alias.email }} was found in {{ alias.hibp_breaches_not_notified_user|count }} data breaches.
{%- set breaches = alias.hibp_breaches_not_notified_user|sort(attribute='date', reverse=True) %}
{% for breach in breaches[:4] %}
- {{ breach.name }} ({{ breach.date.format('YYYY-MM-DD') }}). Breached data includes {{ breach.data_classes|join(', ', attribute='attribute') }}.
{%- endfor %}
{%- if breaches|length > 4 %}
And {{ breaches|length - 4 }} more data breaches...
{% endif %}
{% endfor %}
{%- if breached_aliases|length > 10 %}
And {{ breached_aliases|length - 10 }} more aliases...
{%- endif %}
For more information, please check https://haveibeenpwned.com/.
Best,
SimpleLogin Team.