diff options
-rw-r--r-- | templates/web/fixmystreet/front/recent.html | 24 | ||||
-rw-r--r-- | templates/web/fixmystreet/index.html | 25 |
2 files changed, 25 insertions, 24 deletions
diff --git a/templates/web/fixmystreet/front/recent.html b/templates/web/fixmystreet/front/recent.html new file mode 100644 index 000000000..4cb575489 --- /dev/null +++ b/templates/web/fixmystreet/front/recent.html @@ -0,0 +1,24 @@ + [% + 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 'report/_item.html', no_fixed = 1 %] + [% END %] + </ul> + </section> + + </div> + [% END %] diff --git a/templates/web/fixmystreet/index.html b/templates/web/fixmystreet/index.html index 4d674a17e..a20c35e51 100644 --- a/templates/web/fixmystreet/index.html +++ b/templates/web/fixmystreet/index.html @@ -36,30 +36,7 @@ kinds of problems like missed bins use our [% INCLUDE 'index-steps.html' %] </div> - [% - 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 'report/_item.html', no_fixed = 1 %] - [% END %] - </ul> - </section> - - </div> - [% END %] + [% INCLUDE 'front/recent.html' %] </div> |