diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index bebac0f714b632c8fca6a1fec1f871372a1188b3..5ce7ab62466bf2de93fc26f3d6ffe2f2ce5609f6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -40,14 +40,6 @@ module ApplicationHelper end end - def request_protocol - request.ssl? ? "https" : "http" - end - - def web_app_url - "#{request_protocol}://#{Gitlab.config.web_host}/" - end - def last_commit(project) if project.repo_exists? time_ago_in_words(project.commit.committed_date) + " ago" diff --git a/app/views/admin/groups/_form.html.haml b/app/views/admin/groups/_form.html.haml index 40d361b04024d1a7b1489f8874d20d0b64321a13..5af22392304a28216b5ad6990c90f501939050d0 100644 --- a/app/views/admin/groups/_form.html.haml +++ b/app/views/admin/groups/_form.html.haml @@ -12,7 +12,7 @@ URL .input .input-prepend - %span.add-on= web_app_url + 'groups/' + %span.add-on= root_url + 'groups/' = f.text_field :path, placeholder: "example" .form-actions