aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/web/zerotb/around/around_map_list_items.html9
-rw-r--r--templates/web/zerotb/around/on_map_list_items.html7
-rw-r--r--templates/web/zerotb/report/_item.html5
3 files changed, 21 insertions, 0 deletions
diff --git a/templates/web/zerotb/around/around_map_list_items.html b/templates/web/zerotb/around/around_map_list_items.html
new file mode 100644
index 000000000..225ddde6e
--- /dev/null
+++ b/templates/web/zerotb/around/around_map_list_items.html
@@ -0,0 +1,9 @@
+[% IF around_map.size %]
+ [% FOREACH p IN around_map %]
+ [% INCLUDE 'report/_item.html'
+ problem = p.problem,
+ dist = tprintf("%.1f", (p.distance || 0) ) %]
+ [% END %]
+[% ELSE %]
+ <li><p>[% loc('No clinics found.') %]</p></li>
+[% END %]
diff --git a/templates/web/zerotb/around/on_map_list_items.html b/templates/web/zerotb/around/on_map_list_items.html
new file mode 100644
index 000000000..838e2e9fa
--- /dev/null
+++ b/templates/web/zerotb/around/on_map_list_items.html
@@ -0,0 +1,7 @@
+[% IF on_map.size %]
+ [% FOREACH problem IN on_map %]
+ [% INCLUDE 'report/_item.html' %]
+ [% END %]
+[% ELSE %]
+ <li><p>[% loc('No clinics found.') %]</p></li>
+[% END %]
diff --git a/templates/web/zerotb/report/_item.html b/templates/web/zerotb/report/_item.html
new file mode 100644
index 000000000..92fb8e8d8
--- /dev/null
+++ b/templates/web/zerotb/report/_item.html
@@ -0,0 +1,5 @@
+<li>
+<a class="text" href="[% c.uri_for('/report', problem.id ) %]">
+ <h4>[% problem.title | html %]</h4>
+</a>
+</li>