X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FGitalist%2FController%2FRepository.pm;h=5015ae28b92d71bb6c924bf23e7a265ceb83b1e8;hb=16bdb8dfa9dc68ef5ce8ca2e9e4af824eb170015;hp=6f9333e1fedef7c1f098b82d30cf197aafcec297;hpb=f6a720484b01e52a02aa455aa28bbdbd48bc947a;p=catagits%2FGitalist.git diff --git a/lib/Gitalist/Controller/Repository.pm b/lib/Gitalist/Controller/Repository.pm index 6f9333e..5015ae2 100644 --- a/lib/Gitalist/Controller/Repository.pm +++ b/lib/Gitalist/Controller/Repository.pm @@ -7,7 +7,10 @@ use namespace::autoclean; BEGIN { extends 'Catalyst::Controller' } -sub base : Chained('/root') PathPart('') CaptureArgs(0) {} +sub base : Chained('/root') PathPart('') CaptureArgs(0) { + my ($self, $c) = @_; + $c->stash(_do_not_mangle_uri_for => 1); +} sub find : Chained('base') PathPart('') CaptureArgs(1) { my ($self, $c, $repository) = @_; @@ -19,15 +22,11 @@ sub find : Chained('base') PathPart('') CaptureArgs(1) { }; } -sub summary : Chained('find') PathPart('') Args(0) { - my ($self, $c) = @_; - $c->stash(template => 'summary.tt2'); - $c->forward('/summary'); -} +sub summary : Chained('find') PathPart('') Args(0) {} sub shortlog : Chained('find') Args(0) { my ($self, $c) = @_; - $c->stash(template => 'shortlog.tt2'); + $c->stash(no_wrapper => 1); $c->forward('/shortlog'); }