Get the index page working with the content in a fragment and all the URIs moved
[catagits/Gitalist.git] / lib / Gitalist / Controller / Fragment / Repository.pm
CommitLineData
ecb0ebe7 1package Gitalist::Controller::Fragment::Repository;
2use Moose;
3use namespace::autoclean;
4
5BEGIN { extends 'Catalyst::Controller' }
6with 'Gitalist::URIStructure::Repository';
7
066e9aa4 8sub base : Chained('/fragment/base') PathPart('') CaptureArgs(0) {}
ecb0ebe7 9
10after shortlog => sub {
11 my ($self, $c) = @_;
12 $c->forward('/shortlog');
13};
14
15after heads => sub {
16 my ($self, $c) = @_;
17 $c->stash(
18 heads => $c->stash->{Repository}->heads,
19 );
20};
21
22after log => sub {
23 my ($self, $c) = @_;
24 $c->stash(
25 template => 'log.tt2',
26 );
27 $c->forward('/log');
28};
29
30__PACKAGE__->meta->make_immutable;