summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-07 00:12:43 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-07 00:12:43 -0800
commit98b484b996dd56f42a2c540cdebbba596d7b69cd (patch)
tree9f1067627529cf95f44feff6cbed0823e8dfbd71
parent5be94f4b67ef124aae9723d715f61b5c568e14d6 (diff)
parenta7c8ce6a4d56fdfc38ac0fb034bae51758e5e3e9 (diff)
downloadgitlab-ce-98b484b996dd56f42a2c540cdebbba596d7b69cd.tar.gz
Merge pull request #520 from abhid/default-ssh-username
Removed hardcoded SSH Username on project create/edit form. Fixes Issue #493
-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