Bump version to 0.003004, update Changes.
[catagits/Gitalist.git] / lib / Gitalist / Controller / Fragment / Repository.pm
CommitLineData
ecb0ebe7 1package Gitalist::Controller::Fragment::Repository;
2use Moose;
3use namespace::autoclean;
4
b6ec181b 5BEGIN { extends 'Gitalist::Controller' }
b9423b8e 6with qw/
7 Gitalist::URIStructure::Repository
8 Gitalist::URIStructure::Fragment::WithLog
9/;
ecb0ebe7 10
066e9aa4 11sub base : Chained('/fragment/base') PathPart('') CaptureArgs(0) {}
ecb0ebe7 12
ecb0ebe7 13after heads => sub {
14 my ($self, $c) = @_;
15 $c->stash(
16 heads => $c->stash->{Repository}->heads,
17 );
18};
19
5cb2f569 20=head2 tags
21
22The current list of tags in the repo.
23
24=cut
25
26after tags => sub {
27 my ( $self, $c ) = @_;
28 $c->stash(
29 tags => $c->stash->{Repository}->tags,
30 );
ecb0ebe7 31};
32
33__PACKAGE__->meta->make_immutable;