mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 17:43:46 +01:00
54 lines
1.3 KiB
HTML
54 lines
1.3 KiB
HTML
{% extends "emails/base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
{% for title, group in notifications | select("package") | groupby("package.title") %}
|
|
<h2>
|
|
{{ title }}
|
|
</h2>
|
|
|
|
<ul>
|
|
{% for notification in group %}
|
|
<li>
|
|
<a href="{{ notification.url | abs_url }}">{{ notification.title }}</a> -
|
|
{{ _("from %(username)s.", username=notification.causer.username) }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
|
|
{% for group in notifications | reject("package") %}
|
|
<h2>
|
|
{{ _("Other Notifications") }}
|
|
</h2>
|
|
|
|
<ul>
|
|
{% for notification in group %}
|
|
<li>
|
|
<a href="{{ notification.url | abs_url }}">{{ notification.title }}</a> -
|
|
{{ _("from %(username)s.", username=notification.causer.username) }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
<p style="margin-top: 3em;">
|
|
<a class="btn" href="{{ abs_url_for('notifications.list_all') }}">
|
|
{{ _("View Notifications") }}
|
|
</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=user.username) }}">
|
|
{{ _("Manage your preferences") }}
|
|
</a>
|
|
|
|
|
<a href="{{ abs_url_for('users.unsubscribe', token=sub.token) }}">
|
|
{{ _("Unsubscribe") }}
|
|
</a> <br>
|
|
{% endblock %}
|