aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Map.pm4
-rw-r--r--t/cobrand/councils.t18
-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
5 files changed, 45 insertions, 45 deletions
diff --git a/perllib/FixMyStreet/Map.pm b/perllib/FixMyStreet/Map.pm
index d36b91ffe..587c63d25 100644
--- a/perllib/FixMyStreet/Map.pm
+++ b/perllib/FixMyStreet/Map.pm
@@ -52,10 +52,6 @@ sub set_map_class {
$map_class = $str;
}
-sub header_js {
- return $map_class->header_js(@_);
-}
-
sub display_map {
return $map_class->display_map(@_);
}
diff --git a/t/cobrand/councils.t b/t/cobrand/councils.t
new file mode 100644
index 000000000..8fb10cfbe
--- /dev/null
+++ b/t/cobrand/councils.t
@@ -0,0 +1,18 @@
+use strict;
+use warnings;
+use Test::More;
+
+use FixMyStreet::TestMech;
+my $mech = FixMyStreet::TestMech->new;
+
+foreach my $council (qw/southampton reading bromley/) {
+ SKIP: {
+ skip( "Need '$council' in ALLOWED_COBRANDS config", 3 )
+ unless FixMyStreet::Cobrand->exists($council);
+ ok $mech->host("$council.fixmystreet.com"), "change host to $council";
+ $mech->get_ok('/');
+ $mech->content_like( qr/$council/i );
+ }
+}
+
+done_testing();
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);
%]