| | |
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | private boolean hasMore = false;
|
| | |
|
| | | public LogPanel(String wicketId, final String repositoryName, String objectId, Repository r, int limit, int pageOffset) {
|
| | | super(wicketId);
|
| | | boolean pageResults = limit <= 0;
|
| | |
| | | // Fixed size result set
|
| | | commits = JGitUtils.getRevLog(r, objectId, 0, limit);
|
| | | }
|
| | |
|
| | | // inaccurate way to determine if there are more commits.
|
| | | // works unless commits.size() represents the exact end. |
| | | hasMore = commits.size() >= itemsPerPage;
|
| | |
|
| | | // header
|
| | | if (pageResults) {
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | |
| | | public boolean hasMore() {
|
| | | return hasMore;
|
| | | }
|
| | | }
|