aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-12 11:04:23 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-12 11:04:23 +0100
commit3d22d7252e67df65b9bd7442b8363b212af15c87 (patch)
treeff542f586242fe34bae4a1eb720f8432255f29fc
parenteeea97e7ef61c939a706cb1be87b28f2600e4e8c (diff)
removed old commented out code
-rw-r--r--perllib/FixMyStreet/App/Controller/Alert.pm31
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);
}