From e3e9333840374c269dfd67e04fa58f4e3fd733ed Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 13 Jun 2018 14:54:28 +0100 Subject: [PATCH] Remove counts from sent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Counts of sending/failed/delivered are ‘management information’ or ‘reporting’. We don’t think that caseworkers need to see this information. The idea of the caseworking view is to remove stuff that caseworkers don’t need to see. --- app/templates/views/notifications.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/templates/views/notifications.html b/app/templates/views/notifications.html index 50a6b8be3..0f4743abf 100644 --- a/app/templates/views/notifications.html +++ b/app/templates/views/notifications.html @@ -14,11 +14,14 @@ {{ message_count_label(99, message_type, suffix='') | capitalize }} {% if not message_type == "letter" %} - {{ ajax_block( - partials, - url_for('.get_notifications_as_json', service_id=current_service.id, message_type=message_type, status=status), - 'counts' - ) }} + + {% 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 %}