app-MAIL-temp/templates/emails/transactional/hibp-new-breaches.html
Son Nguyen Kim d49f6b88a9
Upgrade djlint and reformat all fiels (#2197)
* update djlint

* reformat all files

* update precommit version

---------

Co-authored-by: Son NK <son@simplelogin.io>
2024-08-28 13:07:34 +02:00

48 lines
1.3 KiB
HTML

{% extends "base.html" %}
{% block content %}
{% call text() %}
<h1>{{ breached_aliases|count }} of your aliases are found in data breaches.</h1>
{% endcall %}
<ol>
{%- for alias in breached_aliases[:10] %}
<li>
{% call text() %}
<b>{{ alias.email }}</b> was found in {{ alias.hibp_breaches|count }} data breaches.
<br />
<ul>
{% set breaches = alias.hibp_breaches|sort(attribute='date', reverse=True) %}
{%- for breach in breaches[:4] %}
<li>
<b>{{ breach.name }}</b>
{% if breach.date %}({{ breach.date.format("YYYY-MM-DD") }}){% endif %}
{{ breach.description }}
</li>
{%- endfor %}
</ul>
{% if breaches|length > 4 %}And {{ breaches|length - 4 }} more data breaches...{% endif %}
{% endcall %}
</li>
{%- endfor %}
</ol>
{% if breached_aliases|length > 10 %}
{% call text() %}
And {{ breached_aliases|length - 10 }} more aliases...
{% endcall %}
{% endif %}
{% call text() %}
For more information, check
<a href='https://haveibeenpwned.com/'>HaveIBeenPwned.com</a>
.
{% endcall %}
{{ render_text('Best,
<br />
SimpleLogin Team.') }}
{% endblock %}