diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2012-10-02 11:54:33 +0400 |
---|---|---|
committer | Sytse Sijbrandij <sytse@dosire.com> | 2012-10-21 17:48:34 +0400 |
commit | d75cc7eafd980198e6f7484ded56c148ea96479f (patch) | |
tree | 4361b4b23c857a927acadd130622ba46bb45337b /app | |
parent | 2ff36e74eba44b7a972fdb21774f45a27492e69e (diff) |
Display https as repo clone indicator and prevent modification of web_protocol variable.
Rewrite build_url, use web_protocol for repo indicator.
Explicitly initialize custom port to make the logic obvious.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/blame/_head.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/_clone_panel.html.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/blame/_head.html.haml b/app/views/blame/_head.html.haml index 3b027bdaf18..175719b1199 100644 --- a/app/views/blame/_head.html.haml +++ b/app/views/blame/_head.html.haml @@ -6,5 +6,5 @@ %li.right .input-prepend.project_clone_holder %button{class: "btn small active", :"data-clone" => @project.ssh_url_to_repo} SSH - %button{class: "btn small", :"data-clone" => @project.http_url_to_repo} HTTP + %button{class: "btn small", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.web_protocol.upcase = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5" diff --git a/app/views/projects/_clone_panel.html.haml b/app/views/projects/_clone_panel.html.haml index 20891610ace..4411ff1734b 100644 --- a/app/views/projects/_clone_panel.html.haml +++ b/app/views/projects/_clone_panel.html.haml @@ -4,7 +4,7 @@ .form-horizontal .input-prepend.project_clone_holder %button{class: "btn small active", :"data-clone" => @project.ssh_url_to_repo} SSH - %button{class: "btn small", :"data-clone" => @project.http_url_to_repo} HTTP + %button{class: "btn small", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.web_protocol.upcase = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5" .span4.right .right |