Commit 02822f74dac710504f171e67f26ee64e063a2ff6
1 parent
e2dbe0fa
Exists in
spb-stable
and in
3 other branches
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
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
app/views/layouts/_head.html.haml
| 1 | 1 | %head |
| 2 | 2 | %meta{charset: "utf-8"} |
| 3 | + | |
| 4 | + -# Go repository retrieval support. | |
| 5 | + - if controller_name == 'projects' && action_name == 'show' | |
| 6 | + %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"} | |
| 7 | + | |
| 3 | 8 | %title |
| 4 | 9 | = "#{title} | " if defined?(title) |
| 5 | 10 | GitLab | ... | ... |