contentdb/app/templates/emails/notification_digest.html

57 lines
1.4 KiB
HTML
Raw Normal View History

2020-12-06 16:02:02 +01:00
{% extends "emails/base.html" %}
{% block content %}
2022-02-09 20:11:31 +01:00
{% for title, group in notifications | selectattr("package") | groupby("package.title") %}
2020-12-06 16:02:02 +01:00
<h2>
2022-01-25 22:37:54 +01:00
{{ title }}
2020-12-06 16:02:02 +01:00
</h2>
<ul>
{% for notification in group %}
<li>
<a href="{{ notification.url | abs_url }}">{{ notification.title }}</a> -
{{ _("from %(username)s.", username=notification.causer.username) }}
2020-12-06 16:02:02 +01:00
</li>
{% endfor %}
</ul>
{% endfor %}
2022-02-11 18:17:11 +01:00
{% set other_notifications = notifications | selectattr("package", "none") %}
{% if other_notifications %}
2022-01-25 22:37:54 +01:00
<h2>
{{ _("Other Notifications") }}
</h2>
<ul>
2022-02-11 18:17:11 +01:00
{% for notification in other_notifications %}
2022-01-25 22:37:54 +01:00
<li>
<a href="{{ notification.url | abs_url }}">{{ notification.title }}</a> -
{{ _("from %(username)s.", username=notification.causer.username) }}
</li>
{% endfor %}
</ul>
2022-02-11 18:17:11 +01:00
{% endif %}
2020-12-06 16:02:02 +01:00
<p style="margin-top: 3em;">
<a class="btn" href="{{ abs_url_for('notifications.list_all') }}">
2022-01-08 00:27:00 +01:00
{{ _("View Notifications") }}
2020-12-06 16:02:02 +01:00
</a>
</p>
{% endblock %}
{% block footer %}
2022-01-08 00:27:00 +01:00
{{ _("You are receiving this email because you are a registered user of ContentDB, and have email notifications enabled.") }}
<br>
2020-12-06 16:02:02 +01:00
<a href="{{ abs_url_for('users.email_notifications', username=user.username) }}">
{{ _("Manage your preferences") }}
</a>
|
<a href="{{ abs_url_for('users.unsubscribe', token=sub.token) }}">
{{ _("Unsubscribe") }}
</a> <br>
{% endblock %}