Commit 02822f74 authored by Bruno Albuquerque's avatar Bruno Albuquerque

Added support for Go's repository retrieval.

 - Simply adds the releavant meta link in the project's show action.
 - Information about this meta tag can be found here:
   http://golang.org/cmd/go/#hdr-Remote_import_paths
parent e2dbe0fa
%head
%meta{charset: "utf-8"}
-# Go repository retrieval support.
- if controller_name == 'projects' && action_name == 'show'
%meta{name: "go-import", content: "#{Gitlab.config.gitlab.host}/#{@project.namespace.path}/#{@project.path} git http://#{Gitlab.config.gitlab.host}/#{@project.namespace.path}/#{@project.path}.git"}
%title
= "#{title} | " if defined?(title)
GitLab
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment