summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-24 17:02:11 +0100
committerDouwe Maan <douwe@gitlab.com>2015-03-03 11:22:30 +0100
commit3702c4ad80614d71fc5ac3ea1af7c3789ec8146d (patch)
tree18ec58350c7e8beae4f2194c46e66f2d8bb15340 /app/views/projects
parentd513ca584aaed7ca2a1de2d2fbd2192422f13d81 (diff)
downloadgitlab-ce-3702c4ad80614d71fc5ac3ea1af7c3789ec8146d.tar.gz
Render go-import meta tag for private repos.
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/go_import.html.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/go_import.html.haml b/app/views/projects/go_import.html.haml
new file mode 100644
index 00000000000..87ac75a350f
--- /dev/null
+++ b/app/views/projects/go_import.html.haml
@@ -0,0 +1,5 @@
+!!! 5
+%html
+ %head
+ - web_url = [Gitlab.config.gitlab.url, @namespace, @id].join('/')
+ %meta{name: "go-import", content: "#{web_url.split('://')[1]} git #{web_url}.git"}