Browse Source

fixed go-import meta

pull/4726/head
MehSha 7 years ago committed by GitHub
parent
commit
dc2c8742b9
  1. 2
      pkg/context/context.go

2
pkg/context/context.go

@ -255,7 +255,7 @@ func Contexter() macaron.Handler {
</body> </body>
</html> </html>
`, map[string]string{ `, map[string]string{
"GoGetImport": path.Join(setting.Domain, setting.AppSubURL, c.Link), "GoGetImport": path.Join(setting.Domain, setting.AppSubURL, ownerName, repoName),
"CloneLink": models.ComposeHTTPSCloneURL(ownerName, repoName), "CloneLink": models.ComposeHTTPSCloneURL(ownerName, repoName),
"GoDocDirectory": prefix + "{/dir}", "GoDocDirectory": prefix + "{/dir}",
"GoDocFile": prefix + "{/dir}/{file}#L{line}", "GoDocFile": prefix + "{/dir}/{file}#L{line}",

Loading…
Cancel
Save