From: Stricted Date: Fri, 14 Sep 2012 21:13:07 +0000 (+0200) Subject: add project count X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f01a1ea61f9da2b4ad4483c921bd3f77f20f4523;p=gitweb.git add project count --- diff --git a/index.cgi b/index.cgi index 97deaa8..55ca54e 100644 --- a/index.cgi +++ b/index.cgi @@ -4637,7 +4637,7 @@ sub git_project_list_body { my $check_forks = gitweb_check_feature('forks'); my @projects = fill_project_list_info($projlist, $check_forks); - + my $count; $order ||= $default_projects_order; $from = 0 unless defined $from; $to = $#projects if (!defined $to || $#projects < $to); @@ -4682,6 +4682,7 @@ sub git_project_list_body { my $alternate = 1; my $tagfilter = $cgi->param('by_tag'); for (my $i = $from; $i <= $to; $i++) { + $count++; my $pr = $projects[$i]; next if $tagfilter and $show_ctags and not grep { lc $_ eq lc $tagfilter } keys %{$pr->{'ctags'}}; @@ -4727,6 +4728,7 @@ sub git_project_list_body { "\n" . "\n"; } + print "  ".$count." projects found  "; if (defined $extra) { print "\n"; if ($check_forks) {