diff options
| author | Struan Donald <struan@exo.org.uk> | 2012-05-02 12:30:59 +0100 | 
|---|---|---|
| committer | Struan Donald <struan@exo.org.uk> | 2012-05-02 12:30:59 +0100 | 
| commit | f7bba1ad79d2087a834c6fcfcee9159c19e1b51a (patch) | |
| tree | 31612eb1071fbb55b98813a9d0677c0701ef85fa | |
| parent | 6de4b1ca41697063b525ec854db98e6991a5fd70 (diff) | |
configure all reports problem style in the cobrand
| -rw-r--r-- | perllib/FixMyStreet/Cobrand/Barnet.pm | 1 | ||||
| -rw-r--r-- | perllib/FixMyStreet/Cobrand/Default.pm | 9 | ||||
| -rw-r--r-- | perllib/FixMyStreet/Cobrand/FixMyStreet.pm | 2 | ||||
| -rwxr-xr-x | templates/web/default/reports/council.html | 2 | 
4 files changed, 13 insertions, 1 deletions
| diff --git a/perllib/FixMyStreet/Cobrand/Barnet.pm b/perllib/FixMyStreet/Cobrand/Barnet.pm index eceb656b3..31b61aa62 100644 --- a/perllib/FixMyStreet/Cobrand/Barnet.pm +++ b/perllib/FixMyStreet/Cobrand/Barnet.pm @@ -8,6 +8,7 @@ sub council_id { return 2489; }  sub council_area { return 'Barnet'; }  sub council_name { return 'Barnet Council'; }  sub council_url { return 'barnet'; } +sub all_reports_style { return 'detailed'; }  sub path_to_web_templates {      my $self = shift; diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm index c45c36b0b..25ad37a0b 100644 --- a/perllib/FixMyStreet/Cobrand/Default.pm +++ b/perllib/FixMyStreet/Cobrand/Default.pm @@ -136,6 +136,15 @@ Parameter is QUERY  sub enter_postcode_text { '' } +=head2 all_reports_style + +Return the type of problem information to display on the all reports +pages for councils. Can be either simple or detailed. + +=cut + +sub all_reports_style { return 'simple'; } +  =head2 set_lang_and_domain      my $set_lang = $cobrand->set_lang_and_domain( $lang, $unicode, $dir ) diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm index 97b4c3c8b..384b1b05b 100644 --- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm +++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm @@ -6,6 +6,8 @@ sub restriction {      return {};  } +sub all_reports_style { return 'detailed'; } +  sub generate_problem_banner {      my ( $self, $problem ) = @_; diff --git a/templates/web/default/reports/council.html b/templates/web/default/reports/council.html index 0d3d43d82..d7edd63c4 100755 --- a/templates/web/default/reports/council.html +++ b/templates/web/default/reports/council.html @@ -117,7 +117,7 @@ Its area is now covered by <a href="/reports/Bedford">Bedford Borough Council</a  [% IF problems %]  <ul class="issue-list-a"> -[% IF c.cobrand.moniker == 'fixmystreet' %] +[% IF c.cobrand.all_reports_style == 'detailed' %]  [% FOREACH problem IN problems %]      <li> | 
