<% # 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 = 50; my $tags = $git->tags( $user, $project, $limit, $page_count, $page_count * ($page - 1) ); my $tags_count = $git->tags_count($user, $project); %> % layout 'common', title => "Tags \x{30fb} $user/$project"; %= include '/include/header';
%= include '/include/project_header'; %= include '/include/code_menu', display => 'tags';

Tags

% if (@$tags) {
% for (my $i = 0; $i < @$tags; $i++) { % my $tag = $tags->[$i]; % my $name = $tag->{name}; % my $tag_class = $i == @$tags - 1 ? 'tag tag_last' : 'tag';
" title="<%= $tag->{commit}{age_string_datetime_local} %>"><%= $tag->{commit}{age_string} %>
% } % if ($tags_count > $page_count) { % }
% } else {
No Tags.
% }
%= include '/include/footer';