From: James Moger Date: Tue, 10 Nov 2015 13:22:18 +0000 (-0500) Subject: Declare top and bottom page links on reflog page (fixes #761) X-Git-Tag: v1.7.0~1^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=168f0395252bb8e83b84ffab6e8fa17031bbb5bc;p=gitblit.git Declare top and bottom page links on reflog page (fixes #761) --- 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