diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-09-19 19:02:40 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-09-19 19:02:40 -0400 |
commit | 6a7bd097fe2b3e894830fc3fdb60dde5594b61d6 (patch) | |
tree | 64a9ea617ba1f704139881c3960fa2425dad9018 /templates/repo/header.tmpl | |
parent | 4f74b4e6578be4251af65cd08daa37c884e431a0 (diff) | |
parent | 0055cbd3651ebde0f8b6cc70c9c44de56dc38830 (diff) |
Merge pull request #463 from chadoe/urlroot
Allow Gogs to run from a suburl behind a reverse proxy.
Diffstat (limited to 'templates/repo/header.tmpl')
-rw-r--r-- | templates/repo/header.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 42ae775a..dc271a75 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -2,7 +2,7 @@ <div class="container clear"> <h1 id="repo-header-name" class="left public"> <i class="mega-octicon octicon-{{if .Repository.IsPrivate}}lock{{else if .Repository.IsMirror}}repo-clone{{else}}repo{{end}}"></i> - <a class="author" href="/{{.Owner.Name}}">{{.Owner.Name}}</a> + <a class="author" href="{{AppRootSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a> <span class="divider">/</span> <a class="repo text-bold" href="{{.RepoLink}}">{{.Repository.Name}}</a> {{if .Repository.IsMirror}}<span class="label label-gray">{{.i18n.Tr "mirror"}}</span>{{end}} |