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
|
@ -10,17 +10,16 @@
|
|||
.input
|
||||
= f.text_field :name, :placeholder => "Example Project", :class => "xxlarge"
|
||||
|
||||
%hr
|
||||
%h5.page_title
|
||||
.alert.alert-info
|
||||
%h5 Advanced settings:
|
||||
.clearfix
|
||||
= f.label :path do
|
||||
Git Clone
|
||||
Path
|
||||
.input
|
||||
.input-prepend
|
||||
%span.add-on= Gitlab.config.ssh_path
|
||||
= f.text_field :path, :placeholder => "example_project", :disabled => !@project.new_record?
|
||||
%span.add-on= ".git"
|
||||
%strong
|
||||
= text_field_tag :ppath, @project.path_to_repo, :class => "xlarge", :disabled => true
|
||||
.clearfix
|
||||
= f.label :code do
|
||||
URL
|
||||
|
|
|
@ -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'))}");
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render "project_head"
|
||||
.project_edit_holder
|
||||
%h3 Edit Project
|
||||
%h3.page_title Edit Project
|
||||
%hr
|
||||
= render "projects/form"
|
||||
%div.ajax_loader.hide
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.project_new_holder
|
||||
%h3
|
||||
%h3.page_title
|
||||
New Project
|
||||
%hr
|
||||
= render 'new_form'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue