From 64f356d7b04c2b6ae22ed98ed2541c990c411d94 Mon Sep 17 00:00:00 2001
From: Pea Tyczynska
Date: Mon, 24 Sep 2018 11:29:33 +0100
Subject: [PATCH] Display postage on letter notification page
---
app/main/views/notifications.py | 1 +
app/templates/views/notifications/notification.html | 3 +++
2 files changed, 4 insertions(+)
diff --git a/app/main/views/notifications.py b/app/main/views/notifications.py
index 3d2a9456b..76f65d8af 100644
--- a/app/main/views/notifications.py
+++ b/app/main/views/notifications.py
@@ -91,6 +91,7 @@ def view_notification(service_id, notification_id):
help=get_help_argument(),
estimated_letter_delivery_date=get_letter_timings(notification['created_at']).earliest_delivery,
notification_id=notification['id'],
+ postage=notification['postage'],
can_receive_inbound=(current_service.has_permission('inbound_sms')),
is_precompiled_letter=notification['template']['is_precompiled_letter']
)
diff --git a/app/templates/views/notifications/notification.html b/app/templates/views/notifications/notification.html
index e2aadcb46..c922a3b96 100644
--- a/app/templates/views/notifications/notification.html
+++ b/app/templates/views/notifications/notification.html
@@ -35,6 +35,9 @@
{% if template.template_type == 'letter' %}
+
+ Sent by {{ postage }} class
+
Estimated delivery date: {{ estimated_letter_delivery_date|string|format_date_short }}