1 package Fumo
::Controller
::Branch
;
5 use base
'Catalyst::Controller';
11 Fumo::Controller::Branch - Catalyst Controller
15 Catalyst Controller representing a branch.
23 Lists the branches avalible to the user considering the
24 /project route so far.
28 sub branch_list
: Chained
('/project/project_instance')
29 PathPart
('') Args
(0) {
32 $c->stash->{branches
} = [
33 $c->model('Schema::Branch')->search( $c->stash->{search_stack
} )
36 $c->stash->{template
} = 'branch/branch_list.tt2';
39 =head2 branch_instance
41 Passes on the current branch name within the chain.
45 sub branch_instance
: Chained
('/project/project_instance')
46 PathPart
('') CaptureArgs
(1) {
47 my ($self, $c, $branch) = @_;
49 $c->stash->{search_stack
}->{branch
} = $branch;
54 Phil Jackson, phil@shellarchive.co.uk
58 This library is free software, you can redistribute it and/or modify
59 it under the same terms as Perl itself.