Admin gitolite logs. Refactored project creation. Few style fixes.

This commit is contained in:
Dmitriy Zaporozhets 2012-07-05 21:59:37 +03:00
parent 369df86e71
commit d40b9ce26d
15 changed files with 66 additions and 24 deletions

View file

@ -1,7 +1,10 @@
- if @project.valid?
- if @project.saved?
:plain
location.href = "#{project_path(@project, :notice => 'Project was successfully created.')}";
- else
- if @project.git_error?
location.href = "#{errors_githost_path}";
-else
:plain
$('.project_new_holder').show();
$("#new_project").replaceWith("#{escape_javascript(render('new_form'))}");