diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-24 14:05:36 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-05-01 16:14:15 -0400 |
commit | 6f9908aa9ebcdfbb32e8305b157be177071abe56 (patch) | |
tree | 538922f1d0092c53d61f0e58cebf64c91cb3a2cf | |
parent | 3f5b8f5d9203aa7ffb7fbe9cdbaf9dba3da6cae6 (diff) | |
download | gitblit-6f9908aa9ebcdfbb32e8305b157be177071abe56.tar.gz gitblit-6f9908aa9ebcdfbb32e8305b157be177071abe56.zip |
Do not display My Tickets link if ticket service is not ready
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/RootPage.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/RootPage.java b/src/main/java/com/gitblit/wicket/pages/RootPage.java index a4d2353d..fb68208f 100644 --- a/src/main/java/com/gitblit/wicket/pages/RootPage.java +++ b/src/main/java/com/gitblit/wicket/pages/RootPage.java @@ -172,13 +172,12 @@ public abstract class RootPage extends BasePage { if (!authenticateView || (authenticateView && isLoggedIn)) {
pages.add(new PageRegistration(isLoggedIn ? "gb.myDashboard" : "gb.dashboard", MyDashboardPage.class,
getRootPageParameters()));
+ if (isLoggedIn && app().tickets().isReady()) {
+ pages.add(new PageRegistration("gb.mytickets", MyTicketsPage.class));
+ }
pages.add(new PageRegistration("gb.repositories", RepositoriesPage.class,
getRootPageParameters()));
pages.add(new PageRegistration("gb.activity", ActivityPage.class, getRootPageParameters()));
- if(isLoggedIn)
- {
- pages.add(new PageRegistration("gb.mytickets", MyTicketsPage.class, getRootPageParameters()));
- }
if (allowLucene) {
pages.add(new PageRegistration("gb.search", LuceneSearchPage.class));
}
|