]> source.dussan.org Git - gitblit.git/commitdiff
Declare top and bottom page links on reflog page (fixes #761)
authorJames Moger <james.moger@gitblit.com>
Tue, 10 Nov 2015 13:22:18 +0000 (08:22 -0500)
committerJames Moger <james.moger@gitblit.com>
Tue, 10 Nov 2015 13:22:18 +0000 (08:22 -0500)
src/main/java/com/gitblit/wicket/pages/ReflogPage.html
src/main/java/com/gitblit/wicket/pages/ReflogPage.java

index c0ac7eb7dd24a9ac8d7b18dac90b5b480a255d9f..bd59494ac9fb50dfde1257bbbd80ca1ac5803325 100644 (file)
@@ -9,7 +9,7 @@
 \r
        <!-- pager links -->\r
        <div class="page_nav2">\r
-               <a wicket:id="firstPage"><wicket:message key="gb.pageFirst"></wicket:message></a> | <a wicket:id="prevPage">&laquo; <wicket:message key="gb.pagePrevious"></wicket:message></a> | <a wicket:id="nextPage"><wicket:message key="gb.pageNext"></wicket:message> &raquo;</a> \r
+               <a wicket:id="firstPageTop"><wicket:message key="gb.pageFirst"></wicket:message></a> | <a wicket:id="prevPageTop">&laquo; <wicket:message key="gb.pagePrevious"></wicket:message></a> | <a wicket:id="nextPageTop"><wicket:message key="gb.pageNext"></wicket:message> &raquo;</a> \r
        </div>\r
        \r
        <!-- ref log -->\r
@@ -17,7 +17,7 @@
 \r
        <!-- pager links -->\r
        <div style="padding-bottom:5px;">\r
-               <a wicket:id="firstPage"><wicket:message key="gb.pageFirst"></wicket:message></a> | <a wicket:id="prevPage">&laquo; <wicket:message key="gb.pagePrevious"></wicket:message></a> | <a wicket:id="nextPage"><wicket:message key="gb.pageNext"></wicket:message> &raquo;</a> \r
+               <a wicket:id="firstPageBottom"><wicket:message key="gb.pageFirst"></wicket:message></a> | <a wicket:id="prevPageBottom">&laquo; <wicket:message key="gb.pagePrevious"></wicket:message></a> | <a wicket:id="nextPageBottom"><wicket:message key="gb.pageNext"></wicket:message> &raquo;</a> \r
        </div>\r
        \r
 </wicket:extend>\r
index 29fd449f402c172c09cff7ec810b9fe0502ad2cd..44fb2227b1b5383fda005de23c6d72f73eef1636 100644 (file)
@@ -40,15 +40,26 @@ public class ReflogPage extends RepositoryPage {
                boolean hasMore = reflogPanel.hasMore();\r
                add(reflogPanel);\r
 \r
-               add(new BookmarkablePageLink<Void>("firstPage", ReflogPage.class,\r
+               add(new BookmarkablePageLink<Void>("firstPageTop", ReflogPage.class,\r
                                WicketUtils.newObjectParameter(repositoryName, objectId))\r
                                .setEnabled(pageNumber > 1));\r
-               add(new BookmarkablePageLink<Void>("prevPage", ReflogPage.class,\r
+               add(new BookmarkablePageLink<Void>("prevPageTop", ReflogPage.class,\r
                                WicketUtils.newLogPageParameter(repositoryName, objectId, prevPage))\r
                                .setEnabled(pageNumber > 1));\r
-               add(new BookmarkablePageLink<Void>("nextPage", ReflogPage.class,\r
+               add(new BookmarkablePageLink<Void>("nextPageTop", ReflogPage.class,\r
                                WicketUtils.newLogPageParameter(repositoryName, objectId, nextPage))\r
                                .setEnabled(hasMore));\r
+\r
+               add(new BookmarkablePageLink<Void>("firstPageBottom", ReflogPage.class,\r
+                               WicketUtils.newObjectParameter(repositoryName, objectId))\r
+                               .setEnabled(pageNumber > 1));\r
+               add(new BookmarkablePageLink<Void>("prevPageBottom", ReflogPage.class,\r
+                               WicketUtils.newLogPageParameter(repositoryName, objectId, prevPage))\r
+                               .setEnabled(pageNumber > 1));\r
+               add(new BookmarkablePageLink<Void>("nextPageBottom", ReflogPage.class,\r
+                               WicketUtils.newLogPageParameter(repositoryName, objectId, nextPage))\r
+                               .setEnabled(hasMore));\r
+\r
        }\r
 \r
        @Override\r