Code

gitweb: Add missing show '...' links change.
authorRobert Fitzsimons <robfitz@273k.net>
Fri, 22 Dec 2006 19:38:12 +0000 (19:38 +0000)
committerJunio C Hamano <junkio@cox.net>
Sat, 23 Dec 2006 07:18:13 +0000 (23:18 -0800)
Part of the patch for "gitweb: Show '...' links in "summary" view only
if there are more items" (313ce8cee665447e4476d7e8985b270346a8e5a1) is
missing.  Add it back in.

Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl

index ebbc397ee8dce807bd9700aa72d33c80b13f02bf..80c04b88da6043baec1c0c5557ec29dd23a45d96 100755 (executable)
@@ -2983,6 +2983,7 @@ sub git_summary {
        if (@forklist) {
                git_print_header_div('forks');
                git_project_list_body(\@forklist, undef, 0, 15,
+                                     $#forklist <= 15 ? undef :
                                      $cgi->a({-href => href(action=>"forks")}, "..."),
                                      'noheader');
        }