From 4da8b4e61a7b9101339df5216cac4ce873812464 Mon Sep 17 00:00:00 2001 From: Stricted Date: Fri, 24 May 2013 22:17:52 +0200 Subject: [PATCH] some changes --- index.cgi | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/index.cgi b/index.cgi index 43b9f18..aa1d860 100644 --- a/index.cgi +++ b/index.cgi @@ -111,6 +111,10 @@ our $javascript = "static/gitweb.js"; our $logo_url = "http://git-scm.com/"; our $logo_label = "git homepage"; +# URI and label (title) of footer +our $footer_url = "http://git-scm.com/"; +our $footer_label = "git homepage"; + # source of projects list our $projects_list = ""; @@ -4094,7 +4098,7 @@ sub git_footer_html { } else { my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime; $year += 1900; - print "\n"; + print "\n"; print $cgi->a({-href => href(project=>undef, action=>"opml", project_filter => $project_filter), -class => $feed_class}, "OPML") . " "; @@ -5426,11 +5430,9 @@ sub git_project_list_rows { $from = 0 unless defined $from; $to = $#$projlist if (!defined $to || $#$projlist < $to); - my $count; my $alternate = 1; for (my $i = $from; $i <= $to; $i++) { my $pr = $projlist->[$i]; - $count++; if ($alternate) { print "\n"; } else { @@ -5475,7 +5477,13 @@ sub git_project_list_rows { "\n" . "\n"; } - print "  ".$count." projects found  "; + print ""; + if ($check_forks) { + print " "; + } else { + print " "; + } + print "".($to + 1)." project".($to = 1 ? "s" : "")." found "; } sub git_project_list_body { -- 2.20.1