]> source.dussan.org Git - gitblit.git/commitdiff
Differentiate dashboard page link for authenticated vs. anonymous users
authorJames Moger <james.moger@gitblit.com>
Wed, 12 Jun 2013 21:23:03 +0000 (17:23 -0400)
committerJames Moger <james.moger@gitblit.com>
Wed, 12 Jun 2013 21:23:03 +0000 (17:23 -0400)
src/main/java/com/gitblit/wicket/GitBlitWebApp.properties
src/main/java/com/gitblit/wicket/pages/RootPage.java

index a5485ee2ba9c6bd9a22dd0933039e2d2680dfbc0..0383ee4a8fcee3e7fbfe87f30b05329fdabbbdbd 100644 (file)
@@ -490,4 +490,5 @@ gb.failedToUpdateUser = Failed to update user account!
 gb.myRepositories = my repositories
 gb.noActivity = there has been no recent commit activity
 gb.findSomeRepositories = find some repositories
-gb.metricAuthorExclusions = author metric exclusions
\ No newline at end of file
+gb.metricAuthorExclusions = author metric exclusions
+gb.myDashboard = my dashboard
\ No newline at end of file
index a279163c8160595f7f76f58dd56633b27d4d081e..e8d100744093dc5f844c2f445bee776ba583674c 100644 (file)
@@ -119,7 +119,7 @@ public abstract class RootPage extends BasePage {
                // navigation links\r
                List<PageRegistration> pages = new ArrayList<PageRegistration>();\r
                if (!authenticateView || (authenticateView && GitBlitWebSession.get().isLoggedIn())) {\r
-                       pages.add(new PageRegistration("gb.dashboard", DashboardPage.class,\r
+                       pages.add(new PageRegistration(GitBlitWebSession.get().isLoggedIn() ? "gb.myDashboard" : "gb.dashboard", DashboardPage.class,\r
                                        getRootPageParameters()));\r
                        pages.add(new PageRegistration("gb.repositories", RepositoriesPage.class,\r
                                        getRootPageParameters()));\r