contentdb/app/templates/emails/notification.html

41 lines
995 B
HTML
Raw Normal View History

2020-12-05 20:15:33 +01:00
{% extends "emails/base.html" %}
{% block content %}
<h2 style="margin-top: 0;">
2020-12-06 02:23:18 +01:00
{{ notification.title }}
2020-12-05 20:15:33 +01:00
</h2>
2020-12-06 02:23:18 +01:00
2020-12-05 20:15:33 +01:00
<p>
2020-12-06 02:23:18 +01:00
{% if notification.package %}
{{ _("From %(username)s and on package %(package)s.",
username=notification.causer.display_name, package=notification.package.title) }}
{% else %}
{{ _("From %(username)s.", username=notification.causer.display_name) }}
{% endif %}
2020-12-05 20:15:33 +01:00
</p>
<p>
<a class="btn" href="{{ notification.url | abs_url }}">
View Notification
</a>
</p>
2020-12-05 20:52:02 +01:00
{% endblock %}
{% block footer %}
2020-12-05 21:36:09 +01:00
You are receiving this email because you are a registered user of ContentDB,
and have email notifications enabled. <br>
2020-12-05 20:15:33 +01:00
<a href="{{ abs_url_for('users.email_notifications', username=notification.user.username) }}">
2020-12-05 20:52:02 +01:00
{{ _("Manage your preferences") }}
2020-12-05 20:15:33 +01:00
</a>
2020-12-05 21:36:09 +01:00
|
<a href="{{ abs_url_for('users.unsubscribe', token=sub.token) }}">
{{ _("Unsubscribe") }}
2020-12-06 02:23:18 +01:00
</a> <br>
{{ _("This is a '%(type)s' notification.", type=notification.type.getTitle()) }}
2020-12-05 20:15:33 +01:00
{% endblock %}