some changes
authorStricted <info@nexus-irc.de>
Fri, 24 May 2013 20:17:52 +0000 (22:17 +0200)
committerStricted <info@nexus-irc.de>
Fri, 24 May 2013 20:17:52 +0000 (22:17 +0200)
index.cgi

index 43b9f1852f1d10c8a62f6a0a1c9d4c1328290d8c..aa1d8602d19960d65e9889ffbdf807e6efd194f3 100644 (file)
--- 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 "<div class=\"page_footer_text\">Copyright &copy; $year, <a href=\"http://nexus-irc.de\">Nexus-IRC.de</a></div>\n";
+               print "<div class=\"page_footer_text\">Copyright &copy; $year, <a href=\"$footer_url\">$footer_label</a></div>\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 "<tr class=\"dark\">\n";
                } else {
@@ -5475,7 +5477,13 @@ sub git_project_list_rows {
                      "</td>\n" .
                      "</tr>\n";
        }
-       print "<tr><td>&nbsp;</td><td>&nbsp;</td><td>".$count." projects found</td><td>&nbsp;</td><td>&nbsp;</td></tr>";
+       print "<tr>";
+       if ($check_forks) {
+               print "<td colspan=\"2\">&nbsp;</td>";
+       } else {
+               print "<td colspan=\"1\">&nbsp;</td>";
+       }
+       print "<td>".($to + 1)." project".($to = 1 ? "s" : "")." found</td><td colspan=\"3\">&nbsp;</td></tr>";
 }
 
 sub git_project_list_body {