=cut
-sub atom : Chained('find') Args(0) {
+sub atom : Chained('find') Does('FilenameArgs') Args() {
my ($self, $c) = @_;
my $host = lc hostname();
my $repository = $c->stash->{Repository};
my %logargs = (
- sha1 => $repository->head_hash,
- count => Gitalist->config->{paging}{log} || 25,
+ sha1 => $repository->head_hash,
+ count => Gitalist->config->{paging}{log} || 25,
+ ($c->stash->{filename} ? (file => $c->stash->{filename}) : ()),
);
my @revs;
=cut
-sub rss : Chained('find') Args(0) {
+sub rss : Chained('find') Does('FilenameArgs') Args() {
my ($self, $c) = @_;
my $repository = $c->stash->{Repository};
my %logargs = (
sha1 => $repository->head_hash,
count => Gitalist->config->{paging}{log} || 25,
-# ($c->req->param('f') ? (file => $c->req->param('f')) : ())
+ ($c->stash->{filename} ? (file => $c->stash->{filename}) : ()),
);
my @revs;
my $mk_title = $c->stash->{short_cmt};