git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitweb: fix "next" link on bottom of commit log page
@ 2008-05-29 18:10 Gerrit Pape
  2008-05-30  8:12 ` Jakub Narebski
  0 siblings, 1 reply; 5+ messages in thread
From: Gerrit Pape @ 2008-05-29 18:10 UTC (permalink / raw)
  To: git, Junio C Hamano

When viewing a gitweb repository commit log, the "next" link at the top
of the page works as expected, the "next" link on the bottom of the page
has a=search instead of a=log and thus fails to get you to the next
page.  This commit replaces the bottom "next" link with the same links
as shown at the top of the page.

The bad link was reported by Kai Blin through
 http://bugs.debian.org/481902

Signed-off-by: Gerrit Pape <pape@smarden.org>
---
 gitweb/gitweb.perl |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 57a1905..f7b9ac2 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -4703,12 +4703,7 @@ sub git_log {
 		git_print_log($co{'comment'}, -final_empty_line=> 1);
 		print "</div>\n";
 	}
-	if ($#commitlist >= 100) {
-		print "<div class=\"page_nav\">\n";
-		print $cgi->a({-href => href(-replay=>1, page=>$page+1),
-			       -accesskey => "n", -title => "Alt-n"}, "next");
-		print "</div>\n";
-	}
+	git_print_page_nav('log','', $hash,undef,undef, $paging_nav);
 	git_footer_html();
 }
 
-- 
1.5.5.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-06-02 17:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29 18:10 [PATCH] gitweb: fix "next" link on bottom of commit log page Gerrit Pape
2008-05-30  8:12 ` Jakub Narebski
2008-06-02  8:52   ` Jakub Narebski
2008-06-02  9:54   ` [PATCH] gitweb: Fix "next" link on bottom of page Jakub Narebski
2008-06-02 17:02     ` Gerrit Pape

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).