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/explore | |
parent | 4f74b4e6578be4251af65cd08daa37c884e431a0 (diff) | |
parent | 0055cbd3651ebde0f8b6cc70c9c44de56dc38830 (diff) | |
download | gitea-6a7bd097fe2b3e894830fc3fdb60dde5594b61d6.tar.gz gitea-6a7bd097fe2b3e894830fc3fdb60dde5594b61d6.zip |
Merge pull request #463 from chadoe/urlroot
Allow Gogs to run from a suburl behind a reverse proxy.
Diffstat (limited to 'templates/explore')
-rw-r--r-- | templates/explore/nav.tmpl | 2 | ||||
-rw-r--r-- | templates/explore/repos.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/explore/nav.tmpl b/templates/explore/nav.tmpl index 1310bccf04..a6c0acada4 100644 --- a/templates/explore/nav.tmpl +++ b/templates/explore/nav.tmpl @@ -2,7 +2,7 @@ <p class="panel-header"><strong>{{.i18n.Tr "explore"}}</strong></p> <div class="panel-body"> <ul class="menu menu-vertical switching-list grid-1-5 left"> - <li {{if .PageIsExploreRepositories}}class="current"{{end}}><a href="/explore">{{.i18n.Tr "explore.repos"}}</a></li> + <li {{if .PageIsExploreRepositories}}class="current"{{end}}><a href="{{AppRootSubUrl}}/explore">{{.i18n.Tr "explore.repos"}}</a></li> </ul> </div> </div>
\ No newline at end of file diff --git a/templates/explore/repos.tmpl b/templates/explore/repos.tmpl index a1e3d408e8..b8ae17915a 100644 --- a/templates/explore/repos.tmpl +++ b/templates/explore/repos.tmpl @@ -12,7 +12,7 @@ <li><i class="octicon octicon-star"></i> {{.NumStars}}</li> <li><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li> </ul> - <h2><a href="/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></h2> + <h2><a href="{{AppRootSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></h2> <p class="org-repo-description">{{.Description}}</p> <p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p> </div> |