From 9e5beeecd2a462337ca5a893bf1458c25df26060 Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 5 Oct 2011 08:04:47 -0400 Subject: [PATCH] Refactored topbar navigation links to indicate current page. --- resources/arrow_page.png | Bin 0 -> 191 bytes resources/bootstrap.gb.css | 6 + src/com/gitblit/wicket/PageRegistration.java | 47 +++++ .../gitblit/wicket/pages/RepositoryPage.html | 19 +- .../gitblit/wicket/pages/RepositoryPage.java | 165 +++++------------- src/com/gitblit/wicket/pages/RootPage.html | 6 +- src/com/gitblit/wicket/pages/RootPage.java | 19 +- .../wicket/panels/NavigationPanel.html | 12 ++ .../wicket/panels/NavigationPanel.java | 52 ++++++ 9 files changed, 187 insertions(+), 139 deletions(-) create mode 100644 resources/arrow_page.png create mode 100644 src/com/gitblit/wicket/PageRegistration.java create mode 100644 src/com/gitblit/wicket/panels/NavigationPanel.html create mode 100644 src/com/gitblit/wicket/panels/NavigationPanel.java diff --git a/resources/arrow_page.png b/resources/arrow_page.png new file mode 100644 index 0000000000000000000000000000000000000000..6d930242bb195d499d53821a00432dd27adf5a6b GIT binary patch literal 191 zcmeAS@N?(olHy`uVBq!ia0vp^ff;tIFm7MCPY$llY%F+}5h za)LzUga1Bl|68sY2xT)QTjg!l5Q^TO*SdM{yo%%<4AUJYnt pageClass; + public final PageParameters params; + + public PageRegistration(String translationKey, Class pageClass) { + this(translationKey, pageClass, null); + } + + public PageRegistration(String translationKey, Class pageClass, + PageParameters params) { + this.translationKey = translationKey; + this.pageClass = pageClass; + this.params = params; + } +} \ No newline at end of file diff --git a/src/com/gitblit/wicket/pages/RepositoryPage.html b/src/com/gitblit/wicket/pages/RepositoryPage.html index 100016f1..c60275ab 100644 --- a/src/com/gitblit/wicket/pages/RepositoryPage.html +++ b/src/com/gitblit/wicket/pages/RepositoryPage.html @@ -15,18 +15,13 @@ - + + + + + + +