Small fixes
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user