From 2c8512b36c8a3c48d15e7243ca40e3947c2fc162 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 24 May 2011 11:49:33 +0100 Subject: Move links under map to template. --- perllib/FixMyStreet/App/Controller/Around.pm | 34 ---------------------------- 1 file changed, 34 deletions(-) (limited to 'perllib/FixMyStreet/App/Controller/Around.pm') diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm index cc7e84706..f8befcef7 100644 --- a/perllib/FixMyStreet/App/Controller/Around.pm +++ b/perllib/FixMyStreet/App/Controller/Around.pm @@ -167,11 +167,6 @@ sub display_location : Private { # Deal with pin hiding/age my $all_pins = $c->req->param('all_pins') ? 1 : undef; $c->stash->{all_pins} = $all_pins; - - # Setup some bits of text - my $all_link = $c->req->uri_with( { no_pins => undef, all_pins => undef } ); - my $all_text = - $all_pins ? _('Hide stale reports') : _('Include stale reports'); my $interval = $all_pins ? undef : $c->cobrand->on_map_default_max_pin_age; # get the map features @@ -191,35 +186,6 @@ sub display_location : Private { } @$on_map_all, @$around_map; { # FIXME - ideally this indented code should be in the templates - my $no_pins = $c->req->param('no_pins') || ''; - my $toggle_pins_link = - $c->req->uri_with( { no_pins => $no_pins ? 0 : 1 } ); - my $toggle_pins_text = $no_pins ? _('Show pins') : _('Hide pins'); - - my $map_links = - ""; - - $map_links .= # - "" - if mySociety::Config::get('COUNTRY') eq 'GB'; - - $map_links .= "

"; - $c->stash->{map_links} = $map_links; - $c->stash->{map_html} = FixMyStreet::Map::display_map( $c->fake_q, latitude => $latitude, -- cgit v1.2.3