From 168f0395252bb8e83b84ffab6e8fa17031bbb5bc Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 10 Nov 2015 08:22:18 -0500 Subject: [PATCH] Declare top and bottom page links on reflog page (fixes #761) --- .../com/gitblit/wicket/pages/ReflogPage.html | 4 ++-- .../com/gitblit/wicket/pages/ReflogPage.java | 17 ++++++++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/gitblit/wicket/pages/ReflogPage.html b/src/main/java/com/gitblit/wicket/pages/ReflogPage.html index c0ac7eb7..bd59494a 100644 --- a/src/main/java/com/gitblit/wicket/pages/ReflogPage.html +++ b/src/main/java/com/gitblit/wicket/pages/ReflogPage.html @@ -9,7 +9,7 @@ @@ -17,7 +17,7 @@
- | « | » + | « | »
diff --git a/src/main/java/com/gitblit/wicket/pages/ReflogPage.java b/src/main/java/com/gitblit/wicket/pages/ReflogPage.java index 29fd449f..44fb2227 100644 --- a/src/main/java/com/gitblit/wicket/pages/ReflogPage.java +++ b/src/main/java/com/gitblit/wicket/pages/ReflogPage.java @@ -40,15 +40,26 @@ public class ReflogPage extends RepositoryPage { boolean hasMore = reflogPanel.hasMore(); add(reflogPanel); - add(new BookmarkablePageLink("firstPage", ReflogPage.class, + add(new BookmarkablePageLink("firstPageTop", ReflogPage.class, WicketUtils.newObjectParameter(repositoryName, objectId)) .setEnabled(pageNumber > 1)); - add(new BookmarkablePageLink("prevPage", ReflogPage.class, + add(new BookmarkablePageLink("prevPageTop", ReflogPage.class, WicketUtils.newLogPageParameter(repositoryName, objectId, prevPage)) .setEnabled(pageNumber > 1)); - add(new BookmarkablePageLink("nextPage", ReflogPage.class, + add(new BookmarkablePageLink("nextPageTop", ReflogPage.class, WicketUtils.newLogPageParameter(repositoryName, objectId, nextPage)) .setEnabled(hasMore)); + + add(new BookmarkablePageLink("firstPageBottom", ReflogPage.class, + WicketUtils.newObjectParameter(repositoryName, objectId)) + .setEnabled(pageNumber > 1)); + add(new BookmarkablePageLink("prevPageBottom", ReflogPage.class, + WicketUtils.newLogPageParameter(repositoryName, objectId, prevPage)) + .setEnabled(pageNumber > 1)); + add(new BookmarkablePageLink("nextPageBottom", ReflogPage.class, + WicketUtils.newLogPageParameter(repositoryName, objectId, nextPage)) + .setEnabled(hasMore)); + } @Override -- 2.39.5