aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/front/recent.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/front/recent.html')
-rw-r--r--templates/web/base/front/recent.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/web/base/front/recent.html b/templates/web/base/front/recent.html
new file mode 100644
index 000000000..de74f3326
--- /dev/null
+++ b/templates/web/base/front/recent.html
@@ -0,0 +1,23 @@
+[%
+ recent_photos = c.cobrand.recent_photos('front', 5);
+%]
+
+[% IF recent_photos.size %]
+<div id="front-recently">
+ <h2>
+ [%- IF c.cobrand.moniker == 'hart' %]
+ Recently reported
+ [% ELSE %]
+ [% loc('Recently reported problems') %]
+ [% END -%]
+ </h2>
+
+ <section class="full-width">
+ <ul class="issue-list-a">
+ [% FOREACH problem IN recent_photos %]
+ [% INCLUDE 'front/_list-entry.html' %]
+ [% END %]
+ </ul>
+ </section>
+</div>
+[% END %]