create.js.haml 350 Bytes
Newer Older
1
- if @project.saved?
gitlabhq's avatar
gitlabhq committed
2
  :plain
3
    location.href = "#{project_path(@project)}";
gitlabhq's avatar
gitlabhq committed
4
- else
5 6
  - if @project.git_error?
    location.href = "#{errors_githost_path}";
7
  -else
gitlabhq's avatar
gitlabhq committed
8
  :plain
9
    $('.project_new_holder').show();
10
    $("#new_project").replaceWith("#{escape_javascript(render('new_form'))}");
11
    $('.save-project-loader').hide();
12
    new Projects();