Put counts back on notifications page

We think there is some need for users who don’t need to see the
dashboard to quickly find out which messages have failed.

So this commit brings back the status filters for all users (previously
those with ‘basic view’ wouldn’t have had them).

This makes it less of a drastic change when the `view_activity`
permission is removed from a user.
This commit is contained in:
Chris Hill-Scott
2018-08-06 11:18:32 +01:00
parent bbdbe61cad
commit d2fc613270

View File

@@ -21,13 +21,11 @@
</h1>
{% if not message_type == "letter" %}
{% if current_user.has_permissions('view_activity') %}
{{ ajax_block(
partials,
url_for('.get_notifications_as_json', service_id=current_service.id, message_type=message_type, status=status),
'counts'
) }}
{% endif %}
{{ ajax_block(
partials,
url_for('.get_notifications_as_json', service_id=current_service.id, message_type=message_type, status=status),
'counts'
) }}
<form
method="post"