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/single_list.tmpl | |
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/repo/single_list.tmpl')
-rw-r--r-- | templates/repo/single_list.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/single_list.tmpl b/templates/repo/single_list.tmpl index 640f7f0901..6728dd70c9 100644 --- a/templates/repo/single_list.tmpl +++ b/templates/repo/single_list.tmpl @@ -1,9 +1,9 @@ <div class="panel panel-default info-box"> <div class="panel-heading info-head"> - <a href="/{{.Username}}/{{.Reponame}}/commit/{{.LastCommit.Id}}" rel="nofollow">{{.LastCommit.Summary}}</a> + <a href="{{AppRootSubUrl}}/{{.Username}}/{{.Reponame}}/commit/{{.LastCommit.Id}}" rel="nofollow">{{.LastCommit.Summary}}</a> </div> <div class="panel-body info-content"> - <a href="/user/{{.LastCommit.Author.Name}}">{{.LastCommit.Author.Name}}</a> <span class="text-muted">{{TimeSince .LastCommit.Author.When}}</span> + <a href="{{AppRootSubUrl}}/user/{{.LastCommit.Author.Name}}">{{.LastCommit.Author.Name}}</a> <span class="text-muted">{{TimeSince .LastCommit.Author.When}}</span> </div> <table class="panel-footer table file-list"> <thead class="hidden"> @@ -36,7 +36,7 @@ </span> </td> <td class="text"> - <span class="wrap"><a rel="nofollow" href="/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}}">{{$commit.Summary}}</a></span> + <span class="wrap"><a rel="nofollow" href="{{AppRootSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}}">{{$commit.Summary}}</a></span> </td> <td class="date"> <span class="wrap">{{TimeSince $commit.Committer.When}}</span> |