summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages/UserPage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-05-27 18:13:30 -0400
committerJames Moger <james.moger@gitblit.com>2014-06-03 10:34:50 -0400
commit0047fbba99b804d268a66ed7504a568596de6168 (patch)
tree4940877475bddebe41d25b9cdced960eb5a107c2 /src/main/java/com/gitblit/wicket/pages/UserPage.java
parente1bcda8c6245035c96bf44ee09d61fa5a52bcafc (diff)
downloadgitblit-0047fbba99b804d268a66ed7504a568596de6168.tar.gz
gitblit-0047fbba99b804d268a66ed7504a568596de6168.zip
Simplified repository creation with a NewRepositoryPage
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/UserPage.java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/UserPage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/UserPage.java b/src/main/java/com/gitblit/wicket/pages/UserPage.java
index 6cb791eb..29b49b33 100644
--- a/src/main/java/com/gitblit/wicket/pages/UserPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/UserPage.java
@@ -30,8 +30,8 @@ import org.eclipse.jgit.lib.PersonIdent;
import com.gitblit.Keys;
import com.gitblit.models.Menu.ParameterMenuItem;
-import com.gitblit.models.NavLink.DropDownPageMenuNavLink;
import com.gitblit.models.NavLink;
+import com.gitblit.models.NavLink.DropDownPageMenuNavLink;
import com.gitblit.models.ProjectModel;
import com.gitblit.models.RepositoryModel;
import com.gitblit.models.UserModel;
@@ -95,7 +95,7 @@ public class UserPage extends RootPage {
UserModel sessionUser = GitBlitWebSession.get().getUser();
if (sessionUser != null && user.canCreate() && sessionUser.equals(user)) {
// user can create personal repositories
- add(new BookmarkablePageLink<Void>("newRepository", EditRepositoryPage.class));
+ add(new BookmarkablePageLink<Void>("newRepository", app().getNewRepositoryPage()));
} else {
add(new Label("newRepository").setVisible(false));
}