Commit 98b484b996dd56f42a2c540cdebbba596d7b69cd

Authored by Dmitriy Zaporozhets
2 parents 5be94f4b a7c8ce6a

Merge pull request #520 from abhid/default-ssh-username

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