diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-24 13:05:51 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-24 13:05:51 +0100 |
commit | 388a9b16d9dfa25b4854c8a3685dc3c764c391a5 (patch) | |
tree | adf06aab9a14f688437d1fddc3549a9e65fa64db /perllib/FixMyStreet/App/Controller/Questionnaire.pm | |
parent | 2c8512b36c8a3c48d15e7243ca40e3947c2fc162 (diff) |
Move lat/lon to templates and use shortened forms.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Questionnaire.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Questionnaire.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Questionnaire.pm b/perllib/FixMyStreet/App/Controller/Questionnaire.pm index 986543e9d..c5258e7d0 100755 --- a/perllib/FixMyStreet/App/Controller/Questionnaire.pm +++ b/perllib/FixMyStreet/App/Controller/Questionnaire.pm @@ -198,6 +198,10 @@ sub display : Private { my $problem = $c->stash->{questionnaire}->problem; + ( $c->stash->{short_latitude}, $c->stash->{short_longitude} ) = + map { Utils::truncate_coordinate($_) } + ( $problem->latitude, $problem->longitude ); + my $problem_text = ''; # Page::display_problem_text($c->fake_q, $problem); # FIXME This needs to be in the template $c->stash->{updates} = ''; # FIXME Should be database ResultSet of problem's pdates $c->stash->{map_start_html} = FixMyStreet::Map::display_map( |