Switch to side-by-side view

--- a/Allura/allura/controllers/repository.py
+++ b/Allura/allura/controllers/repository.py
@@ -61,7 +61,7 @@
 
     @with_trailing_slash
     @expose('jinja:allura:templates/repo/fork.html')
-    def fork(self, to_name=None, project_id=None):
+    def fork(self, to_name=None, project_id=None, mount_label=None):
         # this shows the form and handles the submission
         security.require_authenticated()
         if not c.app.forkable: raise exc.HTTPNotFound
@@ -70,10 +70,12 @@
         ThreadLocalORMSession.close_all()
         from_project = c.project
         to_project = M.Project.query.get(_id=ObjectId(project_id))
+        mount_label = mount_label or '%s - Code' % c.project.name
         if request.method != 'POST' or not to_name:
             return dict(from_repo=from_repo,
                         user_project=c.user.private_project(),
-                        to_name=to_name or '')
+                        to_name=to_name or '',
+                        mount_label=mount_label)
         else:
             with h.push_config(c, project=to_project):
                 if not to_project.database_configured:
@@ -81,7 +83,9 @@
                 security.require(security.has_access(to_project, 'admin'))
                 try:
                     to_project.install_app(
-                        from_repo.tool_name, to_name,
+                        ep_name=from_repo.tool_name,
+                        mount_point=to_name,
+                        mount_label=mount_label,
                         cloned_from_project_id=from_project._id,
                         cloned_from_repo_id=from_repo._id)
                     redirect(to_project.url()+to_name+'/')