mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-24 06:51:29 +01:00
Fix notification digest crash
This commit is contained in:
parent
02b7d55c2d
commit
7d97c2a27b
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% for type, group in notifications | groupby("package.title") %}
|
{% for title, group in notifications | select("package") | groupby("package.title") %}
|
||||||
<h2>
|
<h2>
|
||||||
{{ type or _("Other Notifications") }}
|
{{ title }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@ -17,6 +17,20 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{% endfor %}
|
{% 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;">
|
<p style="margin-top: 3em;">
|
||||||
<a class="btn" href="{{ abs_url_for('notifications.list_all') }}">
|
<a class="btn" href="{{ abs_url_for('notifications.list_all') }}">
|
||||||
{{ _("View Notifications") }}
|
{{ _("View Notifications") }}
|
||||||
|
Loading…
Reference in New Issue
Block a user