Browse Source

Fix template to work with path and v0

master
GeertJohan 10 years ago
parent
commit
a00e6b0e8c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      interface.go

+ 1
- 1
interface.go View File

@@ -107,7 +107,7 @@ const tmplStrPackage = `<!DOCTYPE html>
</div>
<div class="row" >
<div class="col-sm-12" >
<a class="btn btn-lg btn-info" href="{{.Repo.HubRoot}}{{if .Repo.Versions}}/tree/{{.FullVersion.String}}{{.Repo.Path}}{{end}}" ><i class="fa fa-github"></i> Source Code</a>
<a class="btn btn-lg btn-info" href="{{.Repo.HubRoot}}/tree/{{if .Repo.Versions}}{{.FullVersion.String}}{{else}}master{{end}}{{.Repo.Path}}" ><i class="fa fa-github"></i> Source Code</a>
<a class="btn btn-lg btn-info" href="http://godoc.org/{{.Repo.PkgPath}}" ><i class="fa fa-info-circle"></i> API Documentation</a>
</div>
</div>


Loading…
Cancel
Save