aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base')
-rw-r--r--templates/web/base/around/on_map_list_items.html2
-rwxr-xr-xtemplates/web/base/front/_list-entry.html1
-rw-r--r--templates/web/base/front/recent.html2
-rw-r--r--templates/web/base/my/_problem-list.html4
-rw-r--r--templates/web/base/report/_item.html2
-rwxr-xr-xtemplates/web/base/reports/_list-entry.html2
-rw-r--r--templates/web/base/reports/_problem-list.html2
7 files changed, 8 insertions, 7 deletions
diff --git a/templates/web/base/around/on_map_list_items.html b/templates/web/base/around/on_map_list_items.html
index 5de0f9216..90f836fc8 100644
--- a/templates/web/base/around/on_map_list_items.html
+++ b/templates/web/base/around/on_map_list_items.html
@@ -5,7 +5,7 @@
dist = tprintf("%.1f", (problem.distance || 0) );
problem = problem.problem;
END %]
- [% INCLUDE 'report/_item.html' %]
+ [% INCLUDE 'reports/_list-entry.html' %]
[% END %]
[% ELSE %]
<li class="empty">
diff --git a/templates/web/base/front/_list-entry.html b/templates/web/base/front/_list-entry.html
new file mode 100755
index 000000000..2fcf5f296
--- /dev/null
+++ b/templates/web/base/front/_list-entry.html
@@ -0,0 +1 @@
+[% INCLUDE 'report/_item.html' no_fixed = 1 %]
diff --git a/templates/web/base/front/recent.html b/templates/web/base/front/recent.html
index 5275cef43..de74f3326 100644
--- a/templates/web/base/front/recent.html
+++ b/templates/web/base/front/recent.html
@@ -15,7 +15,7 @@
<section class="full-width">
<ul class="issue-list-a">
[% FOREACH problem IN recent_photos %]
- [% INCLUDE 'report/_item.html', no_fixed = 1 %]
+ [% INCLUDE 'front/_list-entry.html' %]
[% END %]
</ul>
</section>
diff --git a/templates/web/base/my/_problem-list.html b/templates/web/base/my/_problem-list.html
index b8a3f07a2..4b5fc73d6 100644
--- a/templates/web/base/my/_problem-list.html
+++ b/templates/web/base/my/_problem-list.html
@@ -1,7 +1,7 @@
<ul class='issue-list-a full-width'>
[% IF problems.size %]
- [% FOREACH p = problems %]
- [% INCLUDE 'report/_item.html', problem = p, no_fixed = 1 %]
+ [% FOREACH problem = problems %]
+ [% INCLUDE 'reports/_list-entry.html' no_fixed = 1 %]
[% END %]
[% ELSE %]
<li class="empty">
diff --git a/templates/web/base/report/_item.html b/templates/web/base/report/_item.html
index 6ac18b534..2fcfa9fb8 100644
--- a/templates/web/base/report/_item.html
+++ b/templates/web/base/report/_item.html
@@ -13,7 +13,7 @@
[%- prettify_dt( problem.confirmed) %]
[%- END %]
[%- IF dist %], [% dist %]km[% END %]
- [%- IF NOT exclude_lastupdate AND problem.confirmed != problem.lastupdate AND problem.whensent != problem.lastupdate %],
+ [%- IF problem.confirmed != problem.lastupdate AND problem.whensent != problem.lastupdate %],
[% tprintf(loc('last updated %s'), prettify_dt( problem.lastupdate, 1 ) ) %]
[%- END %]
[% IF include_sentinfo %]
diff --git a/templates/web/base/reports/_list-entry.html b/templates/web/base/reports/_list-entry.html
index 4c0abd337..dbf0a576e 100755
--- a/templates/web/base/reports/_list-entry.html
+++ b/templates/web/base/reports/_list-entry.html
@@ -1 +1 @@
-[% INCLUDE 'report/_item.html' include_sentinfo = 1 %]
+[% INCLUDE 'report/_item.html' %]
diff --git a/templates/web/base/reports/_problem-list.html b/templates/web/base/reports/_problem-list.html
index 45746e309..a4c78877a 100644
--- a/templates/web/base/reports/_problem-list.html
+++ b/templates/web/base/reports/_problem-list.html
@@ -8,7 +8,7 @@
<ul class="issue-list-a">
[% IF problems %]
[% FOREACH problem IN problems %]
- [% INCLUDE 'reports/_list-entry.html' %]
+ [% INCLUDE 'reports/_list-entry.html' include_sentinfo = 1 include_lastupdate = 1 %]
[% END %]
[% ELSE %]
<li class="empty">