Commit 98b484b996dd56f42a2c540cdebbba596d7b69cd
Exists in
master
and in
4 other branches
Merge pull request #520 from abhid/default-ssh-username
Removed hardcoded SSH Username on project create/edit form. Fixes Issue #493
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
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 |