diff --git a/app/templates/views/service-settings/data-retention.html b/app/templates/views/service-settings/data-retention.html
index d47e8cb49..ebd48ea76 100644
--- a/app/templates/views/service-settings/data-retention.html
+++ b/app/templates/views/service-settings/data-retention.html
@@ -29,27 +29,28 @@
By default data is kept for 7 days
-
- {% if not current_service.data_retention %}
+ {% if not current_service.data_retention %}
+
-
You have not added any data retention
+
You have not added any data retention
- {% endif %}
- {% call mapping_table(
- caption='Data retention',
- field_headings=['Label', 'Value', 'Action'],
- field_headings_visible=False,
- caption_visible=False
- ) %}
- {% for item in current_service.data_retention %}
- {% call row() %}
- {{ text_field(item.notification_type | format_notification_type)}}
- {{ text_field(item.days_of_retention) }}
- {{ edit_field('Change', url_for('.edit_data_retention', service_id=current_service.id, data_retention_id=item.id)) }}
- {% endcall %}
+
+ {% else %}
+ {% call mapping_table(
+ caption='Data retention',
+ field_headings=['Label', 'Value', 'Action'],
+ field_headings_visible=False,
+ caption_visible=False
+ ) %}
+ {% for item in current_service.data_retention %}
+ {% call row() %}
+ {{ text_field(item.notification_type | format_notification_type)}}
+ {{ text_field(item.days_of_retention) }}
+ {{ edit_field('Change', url_for('.edit_data_retention', service_id=current_service.id, data_retention_id=item.id)) }}
+ {% endcall %}
- {% endfor %}
- {% endcall %}
-
+ {% endfor %}
+ {% endcall %}
+ {% endif %}
{% endblock %}