diff options
| author | Bruno Albuquerque <bga@bug-br.org.br> | 2014-01-20 06:26:34 -0500 |
|---|---|---|
| committer | Bruno Albuquerque <bga@bug-br.org.br> | 2014-01-20 06:26:34 -0500 |
| commit | fb782476f9b68641019d91cf6de9899333518ab5 (patch) | |
| tree | a86a0bcdec5047c4d524b0ec5f6b3e6b4f1341cb /app | |
| parent | b75401d5910af3744596d54dba36ba4de87aae4e (diff) | |
| download | gitlab-ce-fb782476f9b68641019d91cf6de9899333518ab5.tar.gz | |
Change web_url_without scheme to web_url_without_protocol.
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/project.rb | 2 | ||||
| -rw-r--r-- | app/views/layouts/_head.html.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index add54eb898b..b022bb4ebb2 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -201,7 +201,7 @@ class Project < ActiveRecord::Base [Gitlab.config.gitlab.url, path_with_namespace].join("/") end - def web_url_without_scheme + def web_url_without_protocol web_url.split("://")[1] end diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml index 2fe31486608..6d8139a0bbb 100644 --- a/app/views/layouts/_head.html.haml +++ b/app/views/layouts/_head.html.haml @@ -23,5 +23,5 @@ -# Go repository retrieval support. - if controller_name == 'projects' && action_name == 'show' - %meta{name: "go-import", content: "#{@project.web_url_without_scheme} git #{@project.web_url}.git"} + %meta{name: "go-import", content: "#{@project.web_url_without_protocol} git #{@project.web_url}.git"} |
