diff --git a/app/main/views/templates.py b/app/main/views/templates.py index c11231006..7e4164a9b 100644 --- a/app/main/views/templates.py +++ b/app/main/views/templates.py @@ -128,6 +128,7 @@ def choose_template(service_id, template_type='all', template_folder_id=None): current_template_folder_id=template_folder_id, can_manage_folders=can_manage_folders(), template_folder_path=current_service.get_template_folder_path(template_folder_id), + template_folder_has_contents=current_service.get_template_folders_and_templates('all', template_folder_id), template_folders=current_service.get_template_folders(template_type, template_folder_id), templates=templates_on_page, show_search_box=(len(templates_on_page) > 7), diff --git a/app/templates/views/templates/_template_list.html b/app/templates/views/templates/_template_list.html index cf41d3d31..3c1cb7555 100644 --- a/app/templates/views/templates/_template_list.html +++ b/app/templates/views/templates/_template_list.html @@ -3,7 +3,11 @@ {% if service_has_templates_or_folders and not templates and not template_folders %}

- No {{ message_count_label(1, template_type, suffix='') }} templates in this folder + {% if template_folder_has_contents %} + There are no {{ message_count_label(1, template_type, suffix='') }} templates in this folder + {% else %} + This folder is empty + {% endif %}

{% else %}