Changeset 242 for trunk/lib/Epoll/Controller
- Timestamp:
- 06/13/09 15:27:17 (15 years ago)
- Location:
- trunk/lib/Epoll
- Files:
-
- 1 edited
- 5 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Epoll/Controller/Admin.pm
r229 r242 1 package Vote::Controller::Admin;1 package Epoll::Controller::Admin; 2 2 3 3 use strict; … … 7 7 =head1 NAME 8 8 9 Vote::Controller::Admin - Catalyst Controller9 Epoll::Controller::Admin - Catalyst Controller 10 10 11 11 =head1 DESCRIPTION … … 106 106 my $pass = $voting->gen_passwd; 107 107 $c->forward( 108 q' Vote::View::Mail', 'render',108 q'Epoll::View::Mail', 'render', 109 109 [ 'voting_passwd.tt', { 110 110 From => $poll->info->{owner}, … … 233 233 my ($self, $c) = @_; 234 234 if ($c->res->body) { return } 235 elsif ($c->stash->{latex}) { $c->forward(qw/ Vote::View::Latex/) }236 else { $c->forward(qw/ Vote::View::TT/) }235 elsif ($c->stash->{latex}) { $c->forward(qw/Epoll::View::Latex/) } 236 else { $c->forward(qw/Epoll::View::TT/) } 237 237 } 238 238 -
trunk/lib/Epoll/Controller/Ballot.pm
r221 r242 1 package Vote::Controller::Ballot;1 package Epoll::Controller::Ballot; 2 2 3 3 use strict; … … 7 7 =head1 NAME 8 8 9 Vote::Controller::Ballot - Catalyst Controller9 Epoll::Controller::Ballot - Catalyst Controller 10 10 11 11 =head1 DESCRIPTION … … 123 123 ); # TODO trap error 124 124 $c->forward( 125 q' Vote::View::Mail', 'render',125 q'Epoll::View::Mail', 'render', 126 126 [ 'ballot_confirm.tt', { 127 127 From => $mail, … … 136 136 137 137 $c->stash->{template} = 'ballot/done.tt'; 138 $c->delete_session(' Voteterminé');138 $c->delete_session('Epoll terminé'); 139 139 } 140 140 } … … 143 143 my ($self, $c) = @_; 144 144 if ($c->res->body) { return } 145 else { $c->forward(qw/ Vote::View::TT/) }145 else { $c->forward(qw/Epoll::View::TT/) } 146 146 } 147 147 -
trunk/lib/Epoll/Controller/Newpoll.pm
r226 r242 1 package Vote::Controller::Newpoll;1 package Epoll::Controller::Newpoll; 2 2 3 3 use strict; … … 7 7 =head1 NAME 8 8 9 Vote::Controller::Newpoll - Catalyst Controller9 Epoll::Controller::Newpoll - Catalyst Controller 10 10 11 11 =head1 DESCRIPTION … … 38 38 ); 39 39 $c->forward( 40 q' Vote::View::Mail', 'render',40 q'Epoll::View::Mail', 'render', 41 41 [ 'poll_request.tt', { 42 42 To => $c->req->param('mail'), … … 76 76 my ($self, $c) = @_; 77 77 if ($c->res->body) { return } 78 else { $c->forward(qw/ Vote::View::TT/) }78 else { $c->forward(qw/Epoll::View::TT/) } 79 79 } 80 80 -
trunk/lib/Epoll/Controller/Root.pm
r200 r242 1 package Vote::Controller::Root;1 package Epoll::Controller::Root; 2 2 3 3 use strict; … … 13 13 =head1 NAME 14 14 15 Vote::Controller::Root - Root Controller for Vote 15 Epoll::Controller::Root - Root Controller for Epoll 16 16 17 17 =head1 DESCRIPTION … … 34 34 sub default : Private { 35 35 my ( $self, $c ) = @_; 36 $c->stash->{page}{title} = 'Epoll ' . $ Vote::DB::VERSION;36 $c->stash->{page}{title} = 'Epoll ' . $Epoll::DB::VERSION; 37 37 } 38 38 … … 46 46 my ($self, $c) = @_; 47 47 if ($c->res->body) { return } 48 else { $c->forward(qw/ Vote::View::TT/) }48 else { $c->forward(qw/Epoll::View::TT/) } 49 49 } 50 50 -
trunk/lib/Epoll/Controller/Vote.pm
r226 r242 1 package Vote::Controller::Vote;1 package Epoll::Controller::Vote; 2 2 3 3 use strict; … … 7 7 =head1 NAME 8 8 9 Vote::Controller::Vote - Catalyst Controller9 Epoll::Controller::Vote - Catalyst Controller 10 10 11 11 =head1 DESCRIPTION … … 38 38 39 39 $c->stash->{voteid} = $id; 40 $c->stash->{page}{title} = ' Vote: ' . $c->model('Vote')->poll($id)->info('label');40 $c->stash->{page}{title} = 'Epoll: ' . $c->model('Vote')->poll($id)->info('label'); 41 41 } 42 42 … … 66 66 my ($self, $c) = @_; 67 67 if ($c->res->body) { return } 68 elsif ($c->stash->{latex}) { $c->forward(qw/ Vote::View::Latex/) }69 else { $c->forward(qw/ Vote::View::TT/) }68 elsif ($c->stash->{latex}) { $c->forward(qw/Epoll::View::Latex/) } 69 else { $c->forward(qw/Epoll::View::TT/) } 70 70 } 71 71
Note: See TracChangeset
for help on using the changeset viewer.