From cb513cd4bd871122c17fd171bc83f15f19711187 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 14 Dec 2023 14:14:43 +0000 Subject: [PATCH] Tidy up front page sub-templates. --- templates/web/base/front/pre-steps.html | 1 - templates/web/base/front/recent.html | 4 ++- templates/web/base/index-steps.html | 6 ----- templates/web/base/index.html | 11 +++++++- .../web/bathnes/front/emergency-message.html | 0 .../{pre-steps.html => pre-columns.html} | 2 -- templates/web/camden/index-steps.html | 6 ----- templates/web/hart/index-steps.html | 6 ----- .../web/highwaysengland/index-steps.html | 5 ---- .../web/northamptonshire/index-steps.html | 6 ----- .../web/oxfordshire/front/post-steps.html | 1 + .../web/oxfordshire/front/pre-recent.html | 3 +++ .../web/oxfordshire/front/pre-steps.html | 5 ++++ templates/web/oxfordshire/front/recent.html | 25 ------------------- templates/web/oxfordshire/index-steps.html | 19 -------------- templates/web/peterborough/index-steps.html | 5 ---- templates/web/shropshire/index-steps.html | 5 ---- templates/web/tfl/index-steps.html | 6 ----- templates/web/thamesmead/index-steps.html | 5 ---- 19 files changed, 22 insertions(+), 99 deletions(-) delete mode 100644 templates/web/base/front/pre-steps.html delete mode 100644 templates/web/bathnes/front/emergency-message.html rename templates/web/bromley/front/{pre-steps.html => pre-columns.html} (86%) create mode 100644 templates/web/oxfordshire/front/post-steps.html create mode 100644 templates/web/oxfordshire/front/pre-recent.html create mode 100644 templates/web/oxfordshire/front/pre-steps.html delete mode 100644 templates/web/oxfordshire/front/recent.html delete mode 100644 templates/web/oxfordshire/index-steps.html diff --git a/templates/web/base/front/pre-steps.html b/templates/web/base/front/pre-steps.html deleted file mode 100644 index 89f4be599b5..00000000000 --- a/templates/web/base/front/pre-steps.html +++ /dev/null @@ -1 +0,0 @@ -[% PROCESS 'front/site-message.html' %] diff --git a/templates/web/base/front/recent.html b/templates/web/base/front/recent.html index 1fe6ad2bee5..00f1e5f0d37 100644 --- a/templates/web/base/front/recent.html +++ b/templates/web/base/front/recent.html @@ -1,4 +1,4 @@ -[% +[% recent_photos = c.cobrand.recent_photos('front', 5); %] @@ -12,6 +12,8 @@

[% END -%]

+ [% TRY %][% INCLUDE "front/pre-recent.html" %][% CATCH file %][% END %] +