Admin gitolite logs. Refactored project creation. Few style fixes.
This commit is contained in:
parent
369df86e71
commit
d40b9ce26d
15 changed files with 66 additions and 24 deletions
|
@ -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'))}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue