aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2018-12-10 18:37:05 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-12-13 16:00:36 +0000
commit760629b7d648e1abd4ae855ee0308d1e3151dc24 (patch)
tree76a7136c4ac588d7af9c4d4d7d6ade98531c7fd5 /perllib
parenta95103e6233d65f230327307904c67aadb871acb (diff)
Modernise report "status" banner
* Simplify markup required for the status banner. * Simplify styles - the banner is now identical on all screen sizes. * Move the banner from `report/display.html` into `report/_main.html` so that it can appear after `.problem-back` in the source order. * Use real pin icon instead of `pin-flat-white-small.png`. * Set a default `$col_fixed_label` colour in `_base.scss`, so cobrands don’t have to define it themselves if they’re happy with green. * Introduce `$col_fixed_label_light`, with a sensible default for all cobrands, even ones that have a custom `$col_fixed_label`. * Remove `$col_fixed_label_dark` – no longer needed.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/TestMech.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm
index b8605f56c..bb4a48d65 100644
--- a/perllib/FixMyStreet/TestMech.pm
+++ b/perllib/FixMyStreet/TestMech.pm
@@ -431,7 +431,7 @@ sub extract_problem_title {
$banner = $mech->extract_problem_banner;
-Returns the problem title from a problem report page. Returns a hashref with id and text.
+Returns the problem title from a problem report page. Returns a hashref with class and text.
=cut
@@ -439,8 +439,8 @@ sub extract_problem_banner {
my $mech = shift;
my $result = scraper {
- process 'div#side > p.banner', id => '@id', text => 'TEXT';
- process 'div.banner > p', id => '@id', text => 'TEXT';
+ process 'div.banner', class => '@class';
+ process 'div.banner > p', text => 'TEXT';
}
->scrape( $mech->response );