summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorJan Christophersen <jan@ruken.pw>2017-02-17 18:18:06 +0100
committerJan Christophersen <jan@ruken.pw>2017-02-24 16:35:34 +0100
commit150c3637521653a9e1200483376e4661ea2a46b3 (patch)
tree11c082e095baf32f2bb888f365df90fe99834544 /app/helpers
parent3589cc064c3ba0b5a6b062c317368dfe9183d1ba (diff)
downloadgitlab-ce-150c3637521653a9e1200483376e4661ea2a46b3.tar.gz
Add the username of the current user to the HTTP(S) clone URL
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/button_helper.rb2
-rw-r--r--app/helpers/projects_helper.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/button_helper.rb b/app/helpers/button_helper.rb
index 4c7c16d694c..195094730aa 100644
--- a/app/helpers/button_helper.rb
+++ b/app/helpers/button_helper.rb
@@ -34,7 +34,7 @@ module ButtonHelper
content_tag (append_link ? :a : :span), protocol,
class: klass,
- href: (project.http_url_to_repo if append_link),
+ href: (project.http_url_to_repo(current_user) if append_link),
data: {
html: true,
placement: placement,
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 735a355c25a..4befeacc135 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -241,7 +241,7 @@ module ProjectsHelper
when 'ssh'
project.ssh_url_to_repo
else
- project.http_url_to_repo
+ project.http_url_to_repo(current_user)
end
end