diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-12 20:22:35 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-12 20:22:35 -0400 |
commit | c117f9e73f148468c624f31be237af7a691533a0 (patch) | |
tree | bf1188d2f6f2df4d58f410d9e52ca33c9dfee302 /templates/repo/commits.tmpl | |
parent | f979d0d6b9ae2c4b5c553df13dfe49b81d8396c1 (diff) | |
download | gitea-c117f9e73f148468c624f31be237af7a691533a0.tar.gz gitea-c117f9e73f148468c624f31be237af7a691533a0.zip |
Fix #166
Diffstat (limited to 'templates/repo/commits.tmpl')
-rw-r--r-- | templates/repo/commits.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl index 74b03074bc..385f9d5bae 100644 --- a/templates/repo/commits.tmpl +++ b/templates/repo/commits.tmpl @@ -41,8 +41,8 @@ </table> </div> {{if not .IsSearchPage}}<ul class="pagination" id="commits-pager"> - {{if .LastPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}?p={{.LastPageNum}}" rel="nofollow">« Newer</a></li>{{end}} - {{if .NextPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}?p={{.NextPageNum}}" rel="nofollow">» Older</a></li>{{end}} + {{if .LastPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}{{if .FileName}}/{{.FileName}}{{end}}?p={{.LastPageNum}}" rel="nofollow">« Newer</a></li>{{end}} + {{if .NextPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}{{if .FileName}}/{{.FileName}}{{end}}?p={{.NextPageNum}}" rel="nofollow">» Older</a></li>{{end}} </ul>{{end}} </div> </div> |