aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/default/index-steps.html24
-rw-r--r--templates/web/default/index.html19
-rw-r--r--templates/web/fixmystreet/index.html25
3 files changed, 27 insertions, 41 deletions
diff --git a/templates/web/default/index-steps.html b/templates/web/default/index-steps.html
new file mode 100644
index 000000000..7129241d2
--- /dev/null
+++ b/templates/web/default/index-steps.html
@@ -0,0 +1,24 @@
+<h2>[% loc('How to report a problem') %]</h2>
+
+<ol class="big-numbers">
+[% IF c.cobrand.moniker == 'fixmybarangay' %]
+ <li>Text LUZ or BSN followed by your report to 12345</li>
+ <li>Visit the Barangay Center in person</li>
+ <li>Staff? <a href="/auth">Sign in</a> and click on the map!
+[% ELSE %]
+ <li>[% question %]</li>
+ <li>[% loc('Locate the problem on a map of the area') %]</li>
+ <li>[% loc('Enter details of the problem') %]</li>
+ [% IF c.cobrand.is_council %]
+ <li>Confirm the report and [% c.cobrand.council_name %] will investigate</li>
+ [% ELSE %]
+ <li>[% loc('We send it to the council on your behalf') %]</li>
+ [% END %]
+[% END %]
+</ol>
+
+<section class="full-width">
+[% INCLUDE "front/stats.html" %]
+[% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
+</section>
+
diff --git a/templates/web/default/index.html b/templates/web/default/index.html
index 159a595bc..3698d6494 100644
--- a/templates/web/default/index.html
+++ b/templates/web/default/index.html
@@ -1,4 +1,4 @@
-[% INCLUDE 'header.html', title => '' %]
+[% INCLUDE 'header.html', title = '' %]
[% IF error %]
<p class="error">[% error %]</p>
@@ -24,19 +24,7 @@
[% PROCESS 'around/postcode_form.html' %]
<div id="front_intro">
-
- <h2>[% loc('How to report a problem') %]</h2>
-
- <ol>
- <li>[% question %]</li>
- <li>[% loc('Locate the problem on a map of the area') %]</li>
- <li>[% loc('Enter details of the problem') %]</li>
- <li>[% loc('We send it to the council on your behalf') %]</li>
- </ol>
-
- [% INCLUDE "front/stats.html" %]
- [% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
-
+ [% INCLUDE 'index-steps.html' %]
</div>
[%
@@ -44,7 +32,6 @@
probs = c.cobrand.recent();
%]
-
[% IF probs.size || recent_photos.size %]
<div id="front_recent">
<h2>[% loc('Recently reported problems') %]</h2>
@@ -58,8 +45,6 @@
[% END %]
[% IF probs.size %]
-
-
<ul id="nearby_lists">
[% FOREACH p IN probs %]
<li>
diff --git a/templates/web/fixmystreet/index.html b/templates/web/fixmystreet/index.html
index 4bc2c0faf..5d7d31baa 100644
--- a/templates/web/fixmystreet/index.html
+++ b/templates/web/fixmystreet/index.html
@@ -33,32 +33,9 @@ kinds of problems like missed bins use our
<div class="tablewrapper">
<div id="front-howto">
- <h2>[% loc('How to report a problem') %]</h2>
-
- <ol class="big-numbers">
- [% IF c.cobrand.moniker == 'fixmybarangay' %]
- <li>Text LUZ or BSN followed by your report to 12345</li>
- <li>Visit the Barangay Center in person</li>
- <li>Staff? <a href="/auth">Sign in</a> and click on the map!
- [% ELSE %]
- <li>[% question %]</li>
- <li>[% loc('Locate the problem on a map of the area') %]</li>
- <li>[% loc('Enter details of the problem') %]</li>
- [% IF c.cobrand.is_council %]
- <li>Confirm the report and [% c.cobrand.council_name %] will investigate</li>
- [% ELSE %]
- <li>[% loc('We send it to the council on your behalf') %]</li>
- [% END %]
- [% END %]
- </ol>
-
- <section class="full-width">
- [% INCLUDE "front/stats.html" %]
- [% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %]
- </section>
+ [% INCLUDE 'index-steps.html' %]
</div>
-
[%
recent_photos = c.cobrand.recent_photos('front', 5);
%]