aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-03-04 11:07:28 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-03-04 11:07:28 +0000
commite18bf78e0513d4f1ebf0413d60691525cdcc2f5d (patch)
tree1fdd80f486b5f731f4de8fc2c647556c536f4a1c
parent5e2004439616d18bb26a3d1f3d313309c230c0a1 (diff)
Added 'my' section to the site
-rw-r--r--perllib/FixMyStreet/App/Controller/My.pm31
-rw-r--r--t/app/controller/my.t10
-rw-r--r--templates/web/default/my/my.html9
3 files changed, 50 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm
new file mode 100644
index 000000000..4c509ec80
--- /dev/null
+++ b/perllib/FixMyStreet/App/Controller/My.pm
@@ -0,0 +1,31 @@
+package FixMyStreet::App::Controller::My;
+use Moose;
+use namespace::autoclean;
+
+BEGIN { extends 'Catalyst::Controller'; }
+
+=head1 NAME
+
+FixMyStreet::App::Controller::My - Catalyst Controller
+
+=head1 DESCRIPTION
+
+Catalyst Controller.
+
+=head1 METHODS
+
+=cut
+
+=head2 index
+
+=cut
+
+# FIXME - only logged in users should get to here.
+
+sub my : Path : Args(0) {
+ my ( $self, $c ) = @_;
+}
+
+__PACKAGE__->meta->make_immutable;
+
+1;
diff --git a/t/app/controller/my.t b/t/app/controller/my.t
new file mode 100644
index 000000000..e018a8941
--- /dev/null
+++ b/t/app/controller/my.t
@@ -0,0 +1,10 @@
+use strict;
+use warnings;
+use Test::More;
+
+
+use Catalyst::Test 'FixMyStreet::App';
+use FixMyStreet::App::Controller::My;
+
+ok( request('/my')->is_success, 'Request should succeed' );
+done_testing();
diff --git a/templates/web/default/my/my.html b/templates/web/default/my/my.html
new file mode 100644
index 000000000..1880f4b0d
--- /dev/null
+++ b/templates/web/default/my/my.html
@@ -0,0 +1,9 @@
+[% INCLUDE 'header.html', title => loc('My Reports') %]
+
+<h1>[% loc('Your Reports') %]</h1>
+
+<p>FIXME - put in blurb here</p>
+
+<a href="/auth/change_password">change password</a>
+
+[% INCLUDE 'footer.html' %] \ No newline at end of file