Skip to content

Commit

Permalink
Tidy up front page sub-templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Dec 14, 2023
1 parent 23cb599 commit cb513cd
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 99 deletions.
1 change: 0 additions & 1 deletion templates/web/base/front/pre-steps.html

This file was deleted.

4 changes: 3 additions & 1 deletion templates/web/base/front/recent.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[%
[%
recent_photos = c.cobrand.recent_photos('front', 5);
%]

Expand All @@ -12,6 +12,8 @@ <h2>
[% END -%]
</h2>

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

<section class="full-width">
<ul id="js-reports-list" class="item-list item-list--reports item-list--front-page">
[% FOREACH problem IN recent_photos %]
Expand Down
6 changes: 0 additions & 6 deletions templates/web/base/index-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,3 @@ <h2>[% loc('How to report a problem') %]</h2>
<li>[% loc('We send it to the council on your behalf') %]</li>
[% END %]
</ol>

<section class="full-width">
[% INCLUDE "front/stats.html" %]
[% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
</section>

11 changes: 10 additions & 1 deletion templates/web/base/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,20 @@
<p class="form-error">[% error %]</p>
[% END %]

[% PROCESS 'front/pre-steps.html' %]
[% PROCESS 'front/site-message.html' %]

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

<div class="tablewrapper">
<div id="front-howto">
[% TRY %][% INCLUDE "front/pre-steps.html" %][% CATCH file %][% END %]
[% INCLUDE 'index-steps.html' %]
[% TRY %][% INCLUDE "front/post-steps.html" %][% CATCH file %]
<section class="full-width">
[% INCLUDE "front/stats.html" %]
[% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
</section>
[% END %]
</div>

[% INCLUDE 'front/recent.html' %]
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[% PROCESS 'front/site-message.html' %]

<p>This is primarily for reporting physical problems that can be fixed
like graffiti, cleansing issues or road defects. To report other
kinds of problems like missed bins use our
Expand Down
6 changes: 0 additions & 6 deletions templates/web/camden/index-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,3 @@ <h2>[% loc('How to report a problem') %]</h2>
<li>Tell us what the problem is, and what we need to do</li>
<li>Confirm the report and we will investigate it</li>
</ol>

<section class="full-width">
[% INCLUDE "front/stats.html" %]
[% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
</section>

6 changes: 0 additions & 6 deletions templates/web/hart/index-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,3 @@ <h2> How to report </h2>
<div id="hart_hants_note">
This site can also be used to report problems to Hampshire County Council via FixMyStreet.
</div>

<section class="full-width">
[% INCLUDE "front/stats.html" %]
[% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
</section>

5 changes: 0 additions & 5 deletions templates/web/highwaysengland/index-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ <h2>How to report a problem</h2>
<li>Enter details of the problem</li>
<li>We will investigate</li>
</ol>

<section class="full-width">
[% INCLUDE "front/stats.html" %]
[% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
</section>
6 changes: 0 additions & 6 deletions templates/web/northamptonshire/index-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,3 @@ <h2>[% loc('How to report a problem') %]</h2>
</li>
<li>Confirm the report and [% c.cobrand.council_name %] will investigate</li>
</ol>

<section class="full-width">
[% INCLUDE "front/stats.html" %]
[% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
</section>

1 change: 1 addition & 0 deletions templates/web/oxfordshire/front/post-steps.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[%# Is in other column %]
3 changes: 3 additions & 0 deletions templates/web/oxfordshire/front/pre-recent.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<section class="full-width">
[% INCLUDE "front/stats.html" %]
</section>
5 changes: 5 additions & 0 deletions templates/web/oxfordshire/front/pre-steps.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h2>[% loc('What we can and can’t fix') %]</h2>

<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube-nocookie.com/embed/D5mJHaQHkjY" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
25 changes: 0 additions & 25 deletions templates/web/oxfordshire/front/recent.html

This file was deleted.

19 changes: 0 additions & 19 deletions templates/web/oxfordshire/index-steps.html

This file was deleted.

5 changes: 0 additions & 5 deletions templates/web/peterborough/index-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ <h2>[% loc('How to report a problem') %]</h2>
<li>[% loc('Enter more details of the problem') %]</li>
<li>Confirm your report and [% c.cobrand.council_name %] will investigate</li>
</ol>

<section class="full-width">
[% INCLUDE "front/stats.html" %]
[% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
</section>
5 changes: 0 additions & 5 deletions templates/web/shropshire/index-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ <h2>[% loc('How to report a problem') %]</h2>
<li>[% loc('Enter details of the problem') %]</li>
<li>Confirm the report and [% c.cobrand.council_name %] will investigate</li>
</ol>

<section class="full-width">
[% INCLUDE "front/stats.html" %]
[% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
</section>
6 changes: 0 additions & 6 deletions templates/web/tfl/index-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,3 @@ <h2>[% loc('How to report a problem') %]</h2>
<li>[% loc('Enter details of the problem') %]</li>
<li>Confirm the report and we will investigate</li>
</ol>

<section class="full-width">
[% INCLUDE "front/stats.html" %]
[% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
</section>

5 changes: 0 additions & 5 deletions templates/web/thamesmead/index-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ <h2>[% loc('How to report a problem') %]</h2>
<li>[% loc('Enter details of the problem') %]</li>
<li>Confirm the report. Peabody’s environmental services team at Thamesmead will investigate. We aim to respond within five working days.</li>
</ol>

<section class="full-width">
[% INCLUDE "front/stats.html" %]
[% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
</section>

0 comments on commit cb513cd

Please sign in to comment.