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 = "";
} else {
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;
$year += 1900;
- print "<div class=\"page_footer_text\">Copyright © $year, <a href=\"http://nexus-irc.de\">Nexus-IRC.de</a></div>\n";
+ print "<div class=\"page_footer_text\">Copyright © $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") . " ";
$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 {
"</td>\n" .
"</tr>\n";
}
- print "<tr><td> </td><td> </td><td>".$count." projects found</td><td> </td><td> </td></tr>";
+ print "<tr>";
+ if ($check_forks) {
+ print "<td colspan=\"2\"> </td>";
+ } else {
+ print "<td colspan=\"1\"> </td>";
+ }
+ print "<td>".($to + 1)." project".($to = 1 ? "s" : "")." found</td><td colspan=\"3\"> </td></tr>";
}
sub git_project_list_body {