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>
|
|
|
|
|
|
|
|
<p>
|
2020-12-06 02:23:18 +01:00
|
|
|
{% if notification.package %}
|
|
|
|
{{ _("From %(username)s and on package %(package)s.",
|
2021-02-26 00:25:33 +01:00
|
|
|
username=notification.causer.username, package=notification.package.title) }}
|
2020-12-06 02:23:18 +01:00
|
|
|
{% else %}
|
2021-02-26 00:25:33 +01:00
|
|
|
{{ _("From %(username)s.", username=notification.causer.username) }}
|
2020-12-06 02:23:18 +01:00
|
|
|
{% endif %}
|
2020-12-05 20:15:33 +01:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<a class="btn" href="{{ notification.url | abs_url }}">
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("View Notification") }}
|
2020-12-05 20:15:33 +01:00
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
|
2020-12-05 20:52:02 +01:00
|
|
|
{% 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-05 21:36:09 +01:00
|
|
|
|
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 %}
|