<% # API my $api = Gitprep::API->new($self); # Parameters my $user = param('user'); my $project = param('project'); my $page = param('page') || 1; # Git my $git = $self->app->git; # Ref names my $limit = app->config->{basic}{tags_limit}; my $page_count = 20; my $tags = $git->tags( app->rep_info($user, $project), $limit, $page_count, $page_count * ($page - 1) ); my $tags_count = $git->tags_count(app->rep_info($user, $project)); %> % layout 'common', title => "Tags \x{30fb} $user/$project"; %= include '/include/header';

Tags

% if (@$tags) { % if ($tags_count > $page_count) {
% } % } else { % }
%= include '/include/footer';