mirror of
https://github.com/simple-login/app.git
synced 2024-09-08 11:21:30 +02:00
* Add DJlint configuration * Initial reformat for djlint * Add template linting to CI * Add explanation for HTML template checks in CONTRIBUTING.md
44 lines
1.2 KiB
HTML
44 lines
1.2 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 %}
|