summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAbhi Devireddy <abhi@devireddy.com>2012-03-06 17:39:07 -0600
committerAbhi Devireddy <abhi@devireddy.com>2012-03-06 17:39:07 -0600
commita7c8ce6a4d56fdfc38ac0fb034bae51758e5e3e9 (patch)
tree9273f70abe58f376f600c81c505d2d532e4d371f /app
parenteb7bbedb20e57e7ff266dfd0611d4d25b69cde1b (diff)
downloadgitlab-ce-a7c8ce6a4d56fdfc38ac0fb034bae51758e5e3e9.tar.gz
Removed hardcoded SSH Username on project create/edit form
Diffstat (limited to 'app')
-rw-r--r--app/views/admin/projects/_form.html.haml2
-rw-r--r--app/views/projects/_form.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/projects/_form.html.haml b/app/views/admin/projects/_form.html.haml
index 4f6bc692b67..abb51bba8c1 100644
--- a/app/views/admin/projects/_form.html.haml
+++ b/app/views/admin/projects/_form.html.haml
@@ -13,7 +13,7 @@
Path
.input
.input-prepend
- %span.add-on= "git@#{GIT_HOST["host"]}:"
+ %span.add-on= "#{GIT_HOST["git_user"]}@#{GIT_HOST["host"]}:"
= f.text_field :path, :placeholder => "example_project", :disabled => !@admin_project.new_record?
.clearfix
= f.label :code do
diff --git a/app/views/projects/_form.html.haml b/app/views/projects/_form.html.haml
index 6137aa5e279..a65a0244a8f 100644
--- a/app/views/projects/_form.html.haml
+++ b/app/views/projects/_form.html.haml
@@ -12,7 +12,7 @@
Path
.input
.input-prepend
- %span.add-on= "git@#{GIT_HOST["host"]}:"
+ %span.add-on= "#{GIT_HOST["git_user"]}@#{GIT_HOST["host"]}:"
= f.text_field :path, :placeholder => "example_project", :disabled => !@project.new_record?
.clearfix
= f.label :code do