summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2015-11-10 08:22:18 -0500
committerJames Moger <james.moger@gitblit.com>2015-11-10 08:22:18 -0500
commit168f0395252bb8e83b84ffab6e8fa17031bbb5bc (patch)
treec745d7912b7433da6c25e43b5b707fc187ba5a0e /src/main
parente69804d4001796a49476089bcbe8f67c3c700497 (diff)
downloadgitblit-168f0395252bb8e83b84ffab6e8fa17031bbb5bc.tar.gz
gitblit-168f0395252bb8e83b84ffab6e8fa17031bbb5bc.zip
Declare top and bottom page links on reflog page (fixes #761)
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/ReflogPage.html4
-rw-r--r--src/main/java/com/gitblit/wicket/pages/ReflogPage.java17
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 @@
<!-- pager links -->
<div class="page_nav2">
- <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>
+ <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>
</div>
<!-- ref log -->
@@ -17,7 +17,7 @@
<!-- pager links -->
<div style="padding-bottom:5px;">
- <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>
+ <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>
</div>
</wicket:extend>
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<Void>("firstPage", ReflogPage.class,
+ add(new BookmarkablePageLink<Void>("firstPageTop", ReflogPage.class,
WicketUtils.newObjectParameter(repositoryName, objectId))
.setEnabled(pageNumber > 1));
- add(new BookmarkablePageLink<Void>("prevPage", ReflogPage.class,
+ add(new BookmarkablePageLink<Void>("prevPageTop", ReflogPage.class,
WicketUtils.newLogPageParameter(repositoryName, objectId, prevPage))
.setEnabled(pageNumber > 1));
- add(new BookmarkablePageLink<Void>("nextPage", ReflogPage.class,
+ add(new BookmarkablePageLink<Void>("nextPageTop", ReflogPage.class,
WicketUtils.newLogPageParameter(repositoryName, objectId, nextPage))
.setEnabled(hasMore));
+
+ add(new BookmarkablePageLink<Void>("firstPageBottom", ReflogPage.class,
+ WicketUtils.newObjectParameter(repositoryName, objectId))
+ .setEnabled(pageNumber > 1));
+ add(new BookmarkablePageLink<Void>("prevPageBottom", ReflogPage.class,
+ WicketUtils.newLogPageParameter(repositoryName, objectId, prevPage))
+ .setEnabled(pageNumber > 1));
+ add(new BookmarkablePageLink<Void>("nextPageBottom", ReflogPage.class,
+ WicketUtils.newLogPageParameter(repositoryName, objectId, nextPage))
+ .setEnabled(hasMore));
+
}
@Override