fix project creation
This commit is contained in:
parent
d68ec5e0fb
commit
c2789dae34
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
||||||
%cite.right= "http://#{GIT_HOST["host"]}/"
|
%cite.right= "http://#{GIT_HOST["host"]}/"
|
||||||
%td= f.text_field :code, :placeholder => "example"
|
%td= f.text_field :code, :placeholder => "example"
|
||||||
|
|
||||||
- unless @project.heads.empty?
|
- unless @project.new_record? || @project.heads.empty?
|
||||||
%tr
|
%tr
|
||||||
%td= f.label :default_branch, "Default Branch"
|
%td= f.label :default_branch, "Default Branch"
|
||||||
%td= f.select(:default_branch, @project.heads.map(&:name), {}, :style => "width:300px;")
|
%td= f.select(:default_branch, @project.heads.map(&:name), {}, :style => "width:300px;")
|
||||||
|
|
Loading…
Add table
Reference in a new issue