summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/panels/PagerPanel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/gitblit/wicket/panels/PagerPanel.java')
-rw-r--r--src/main/java/com/gitblit/wicket/panels/PagerPanel.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/wicket/panels/PagerPanel.java b/src/main/java/com/gitblit/wicket/panels/PagerPanel.java
index c80bb73c..3a136f03 100644
--- a/src/main/java/com/gitblit/wicket/panels/PagerPanel.java
+++ b/src/main/java/com/gitblit/wicket/panels/PagerPanel.java
@@ -48,7 +48,7 @@ public class PagerPanel extends Panel {
deltas = new int[] { -2, -1, 0, 1, 2 };
}
- if (totalPages > 0) {
+ if (totalPages > 0 && currentPage > 1) {
pages.add(new PageObject("\u2190", currentPage - 1));
}
for (int delta : deltas) {
@@ -57,7 +57,7 @@ public class PagerPanel extends Panel {
pages.add(new PageObject("" + page, page));
}
}
- if (totalPages > 0) {
+ if (totalPages > 0 && currentPage < totalPages) {
pages.add(new PageObject("\u2192", currentPage + 1));
}
@@ -75,6 +75,7 @@ public class PagerPanel extends Panel {
item.add(link);
if (pageItem.page == currentPage || pageItem.page < 1 || pageItem.page > totalPages) {
WicketUtils.setCssClass(item, "disabled");
+ link.setEnabled(false);
}
}
};
omated/noid/stable28-update-ca-cert-bundle Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* chore(assets): Recompile assetsbackport/49799/stable29nextcloud-command11 days6-7/+7
* fix(files_sharing): Correct property enforced property namesnfebe11 days1-7/+6
* Merge pull request #49806 from nextcloud/backport/49803/stable29John Molakvoæ11 days3-4/+25
|\
| * chore(assets): Recompile assetsbackport/49803/stable29nextcloud-command11 days2-3/+3
| * fix(files): throttle favorite with max 5 simultaneous requestsskjnldsv11 days1-1/+22
|/
* Merge pull request #49783 from nextcloud/backport/49747/stable29Kate11 days9-8/+10
|\
| * chore(assets): Recompile assetsbackport/49747/stable29nextcloud-command11 days7-7/+7
| * fix(SharingEntryQuickShareSelect): Disable quick share select if user can not...provokateurin11 days1-0/+1
| * fix(SharingEntry): Hide edit button if user can not edit shareprovokateurin11 days1-1/+2
|/
* Merge pull request #49779 from nextcloud/backport/49503/stable29John Molakvoæ11 days4-27/+2
|\
| * fix: disable both iTip and iMip messagesbackport/49503/stable29SebastianKrupinski12 days4-27/+2
* | Fix(l10n): Update translations from TransifexNextcloud bot11 days32-4/+684
* | Merge pull request #49764 from nextcloud/dependabot/npm_and_yarn/stable29/nex...John Molakvoæ12 days14-31/+29
|\ \ | |/ |/|
| * chore(assets): Recompile assetsdependabot/npm_and_yarn/stable29/nextcloud/upload-1.7.1nextcloud-command12 days12-15/+15
| * chore(deps): bump @nextcloud/upload from 1.7.0 to 1.7.1dependabot[bot]12 days2-16/+14
|/
* Merge pull request #49609 from nextcloud/backport/49398/stable29John Molakvoæ12 days107-213/+283
|\
| * chore(assets): Recompile assetsnextcloud-command12 days1-1/+1
| * fix(jest): nextcloud/files Node structuredCloneskjnldsv12 days2-1/+15
| * fix(files): dav Node type declarationskjnldsv12 days3-4/+5
| * chore: compile assetsskjnldsv12 days98-147/+147
| * chore: update `@nextcloud/files` to `3.10.0`skjnldsv12 days2-5/+5
| * fix(files): properly update paths and folder children on node moveskjnldsv12 days3-57/+112
|/
* Merge pull request #49751 from nextcloud/backport/49693/stable29John Molakvoæ12 days4-3/+46
|\
| * chore(assets): Recompile assetsnextcloud-command12 days2-3/+3
| * fix(files): cancel renaming on enter if no file name changesskjnldsv12 days2-0/+43
|/
* Fix(l10n): Update translations from TransifexNextcloud bot12 days182-140/+270
* Merge pull request #49723 from nextcloud/backport/49442/stable29F. E Noel Nfebe13 days8-19/+60
|\
| * chore(assets): Recompile assetsbackport/49442/stable29nextcloud-command13 days7-7/+7
| * fix(files_sharing): Stop infinite loop blocking link share requestsnfebe13 days1-13/+22
| * fix(SharingEntryLink): Show default password before create if anyfenn-cs13 days1-9/+41
|/
* Fix(l10n): Update translations from TransifexNextcloud bot13 days8-16/+20
* Fix(l10n): Update translations from TransifexNextcloud bot2024-12-0874-46/+998
* Merge pull request #49703 from nextcloud/dependabot/npm_and_yarn/stable29/vue...dependabot[bot]2024-12-0760-90/+90
|\
| * chore(assets): Recompile assetsdependabot/npm_and_yarn/stable29/vue-material-design-icons-5.3.1nextcloud-command2024-12-0758-85/+85
| * chore(deps): bump vue-material-design-icons from 5.3.0 to 5.3.1dependabot[bot]2024-12-072-5/+5
|/
* Merge pull request #49706 from nextcloud/dependabot/npm_and_yarn/stable29/und...dependabot[bot]2024-12-076-11/+11
|\
| * chore(assets): Recompile assetsnextcloud-command2024-12-074-6/+6
| * chore(deps): bump underscore from 1.13.6 to 1.13.7dependabot[bot]2024-12-072-5/+5
* | Merge pull request #49702 from nextcloud/dependabot/npm_and_yarn/stable29/cyp...dependabot[bot]2024-12-072-5/+5
|\ \ | |/ |/|
| * chore(deps-dev): bump cypress-if from 1.12.5 to 1.12.6dependabot[bot]2024-12-072-5/+5
* | Merge pull request #49705 from nextcloud/dependabot/npm_and_yarn/stable29/cor...dependabot[bot]2024-12-07