diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-12 19:25:48 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-03-12 19:25:48 +0200 |
commit | 37db76a31b8d9676aeadcaf6e2e175ead0f68d74 (patch) | |
tree | 81fef374bb2d112a8843c855c60653149a202b33 /app/views/projects/create.js.haml | |
parent | 1436433c7b982fbe17b10f744f2f65f208305d3c (diff) | |
download | gitlab-ce-37db76a31b8d9676aeadcaf6e2e175ead0f68d74.tar.gz |
Project import and retry import scaffold
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/create.js.haml')
-rw-r--r-- | app/views/projects/create.js.haml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/projects/create.js.haml b/app/views/projects/create.js.haml index a444b8b59a6..89710d3a09a 100644 --- a/app/views/projects/create.js.haml +++ b/app/views/projects/create.js.haml @@ -1,6 +1,10 @@ - if @project.saved? - :plain - location.href = "#{project_path(@project)}"; + - if @project.import? + :plain + location.href = "#{import_project_path(@project)}"; + - else + :plain + location.href = "#{project_path(@project)}"; - else :plain $(".project-edit-errors").html("#{escape_javascript(render('errors'))}"); |