Commit a7c8ce6a4d56fdfc38ac0fb034bae51758e5e3e9

Authored by Abhi Devireddy
1 parent eb7bbedb

Removed hardcoded SSH Username on project create/edit form

app/views/admin/projects/_form.html.haml
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 Path 13 Path
14 .input 14 .input
15 .input-prepend 15 .input-prepend
16 - %span.add-on= "git@#{GIT_HOST["host"]}:" 16 + %span.add-on= "#{GIT_HOST["git_user"]}@#{GIT_HOST["host"]}:"
17 = f.text_field :path, :placeholder => "example_project", :disabled => !@admin_project.new_record? 17 = f.text_field :path, :placeholder => "example_project", :disabled => !@admin_project.new_record?
18 .clearfix 18 .clearfix
19 = f.label :code do 19 = f.label :code do
app/views/projects/_form.html.haml
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 Path 12 Path
13 .input 13 .input
14 .input-prepend 14 .input-prepend
15 - %span.add-on= "git@#{GIT_HOST["host"]}:" 15 + %span.add-on= "#{GIT_HOST["git_user"]}@#{GIT_HOST["host"]}:"
16 = f.text_field :path, :placeholder => "example_project", :disabled => !@project.new_record? 16 = f.text_field :path, :placeholder => "example_project", :disabled => !@project.new_record?
17 .clearfix 17 .clearfix
18 = f.label :code do 18 = f.label :code do