contentdb/app/templates/emails/notification.html
2024-06-08 10:46:47 +01:00

39 lines
958 B
HTML

{% extends "emails/base.html" %}
{% block content %}
<h2 style="margin-top: 0;">
{{ notification.title }}
</h2>
<p>
{% if notification.package %}
{{ _("From %(username)s and on package %(package)s.",
username=notification.causer.username, package=notification.package.title) }}
{% else %}
{{ _("From %(username)s.", username=notification.causer.username) }}
{% endif %}
</p>
<p>
<a class="btn" href="{{ notification.url | abs_url }}">
{{ _("View Notification") }}
</a>
</p>
{% endblock %}
{% block footer %}
{{ _("You are receiving this email because you are a registered user of ContentDB, and have email notifications enabled.") }}
<br>
<a href="{{ abs_url_for('users.email_notifications', username=notification.user.username) }}">
{{ _("Manage your preferences") }}
</a>
|
<a href="{{ abs_url_for('users.unsubscribe', token=sub.token) }}">
{{ _("Unsubscribe") }}
</a> <br>
{{ notification.type.this_is }}
{% endblock %}