diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Alert.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Alert.pm | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Alert.pm b/perllib/FixMyStreet/App/Controller/Alert.pm index 8b481b7cf..38220faf8 100644 --- a/perllib/FixMyStreet/App/Controller/Alert.pm +++ b/perllib/FixMyStreet/App/Controller/Alert.pm @@ -27,37 +27,8 @@ Show the alerts page sub index : Path('') : Args(0) { my ( $self, $c ) = @_; -# my $q = shift; -# my $cobrand = Page::get_cobrand($q); -# my $error = shift; -# my $errors = ''; -# $errors = '<ul class="error"><li>' . $error . '</li></ul>' if $error; -# -# my $form_action = Cobrand::url(Page::get_cobrand($q), '/alert', $q); -# my $cobrand_form_elements = Cobrand::form_elements($cobrand, 'alerts', $q); -# my $cobrand_extra_data = Cobrand::extra_data($cobrand, $q); -# -# $out .= $errors . qq(<form method="get" action="$form_action">); -# $out .= $q->p($pc_label, '<input type="text" name="pc" value="' . $input_h{pc} . '"> -#<input type="submit" value="' . $submit_text . '">'); -# $out .= $cobrand_form_elements; -# -# my %vars = (error => $error, -# header => $header, -# intro => $intro, -# pc_label => $pc_label, -# form_action => $form_action, -# input_h => \%input_h, -# submit_text => $submit_text, -# cobrand_form_elements => $cobrand_form_elements, -# cobrand_extra_data => $cobrand_extra_data, -# url_home => Cobrand::url($cobrand, '/', $q)); -# -# my $cobrand_page = Page::template_include('alert-front-page', $q, Page::template_root($q), %vars); -# $out = $cobrand_page if ($cobrand_page); - $c->stash->{cobrand_form_elements} = $c->cobrand->form_elements('alerts'); -# + unless ( $c->req->referer && $c->req->referer =~ /fixmystreet\.com/ ) { $c->stash->{photos} = $c->cobrand->recent_photos(10); } |