Small fixes

This commit is contained in:
rubenwardy
2022-02-09 19:11:31 +00:00
parent f61112a8d7
commit 2bbb117eac
8 changed files with 19 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
{% block content %}
{% for title, group in notifications | select("package") | groupby("package.title") %}
{% for title, group in notifications | selectattr("package") | groupby("package.title") %}
<h2>
{{ title }}
</h2>
@@ -17,7 +17,7 @@
</ul>
{% endfor %}
{% for group in notifications | reject("package") %}
{% for group in notifications | selectattr("package", "none") %}
<h2>
{{ _("Other Notifications") }}
</h2>

View File

@@ -3,7 +3,7 @@
{% for entry in log %}
<a class="list-group-item list-group-item-action"
{% if entry.description and current_user.rank.atLeast(current_user.rank.MODERATOR) %}
href="{{ url_for('admin.audit_view', id=entry.id) }}">
href="{{ url_for('admin.audit_view', id_=entry.id) }}">
{% else %}
href="{{ entry.url }}">
{% endif %}