aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-07-04 10:42:38 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-07-04 12:43:57 +0100
commit1b198920c2b90b56748605dfce807451b4f5ecb1 (patch)
treeb1e3b58ec2e8076c55288d54c77f6cc6d6c69b1d
parentd784eab96bfbdd05639443a214d87f8439733c97 (diff)
Factor out empty list template.
Make it customisable by cobrands.
-rw-r--r--templates/web/base/around/_on_map_empty.html1
-rw-r--r--templates/web/base/around/on_map_list_items.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/templates/web/base/around/_on_map_empty.html b/templates/web/base/around/_on_map_empty.html
new file mode 100644
index 000000000..baa80f440
--- /dev/null
+++ b/templates/web/base/around/_on_map_empty.html
@@ -0,0 +1 @@
+<p>[% loc('There are no reports to show.') %]</p>
diff --git a/templates/web/base/around/on_map_list_items.html b/templates/web/base/around/on_map_list_items.html
index dddaf6341..0f63f2637 100644
--- a/templates/web/base/around/on_map_list_items.html
+++ b/templates/web/base/around/on_map_list_items.html
@@ -17,7 +17,7 @@
[% IF c.get_param('js') %]
<p>[% loc('Loading reports…') %]</p>
[% ELSE %]
- <p>[% loc('There are no reports to show.') %]</p>
+ [% PROCESS 'around/_on_map_empty.html' %]
[% END %]
</li>
[% END %]