summaryrefslogtreecommitdiffstats
path: root/templates/repo/commits.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-12 20:22:35 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-12 20:22:35 -0400
commitc117f9e73f148468c624f31be237af7a691533a0 (patch)
treebf1188d2f6f2df4d58f410d9e52ca33c9dfee302 /templates/repo/commits.tmpl
parentf979d0d6b9ae2c4b5c553df13dfe49b81d8396c1 (diff)
downloadgitea-c117f9e73f148468c624f31be237af7a691533a0.tar.gz
gitea-c117f9e73f148468c624f31be237af7a691533a0.zip
Fix #166
Diffstat (limited to 'templates/repo/commits.tmpl')
-rw-r--r--templates/repo/commits.tmpl4
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">&laquo; Newer</a></li>{{end}}
- {{if .NextPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}?p={{.NextPageNum}}" rel="nofollow">&raquo; Older</a></li>{{end}}
+ {{if .LastPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}{{if .FileName}}/{{.FileName}}{{end}}?p={{.LastPageNum}}" rel="nofollow">&laquo; Newer</a></li>{{end}}
+ {{if .NextPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}{{if .FileName}}/{{.FileName}}{{end}}?p={{.NextPageNum}}" rel="nofollow">&raquo; Older</a></li>{{end}}
</ul>{{end}}
</div>
</div>