Browse Source

Fix file commit history pagination

- The `commits_table.tmpl` pagination uses a `$.FileName` variable in
  order to generate the next/previous URLs, but it seems like that
  variable was no longer being populated in `renderCommits`.
pull/4964/head
Douglas Thrift 7 years ago
parent
commit
a8b0d08500
No known key found for this signature in database
GPG Key ID: 627BA4D834176159
  1. 1
      routes/repo/commit.go

1
routes/repo/commit.go

@ -45,6 +45,7 @@ func RenderIssueLinks(oldCommits *list.List, repoLink string) *list.List {
func renderCommits(c *context.Context, filename string) { func renderCommits(c *context.Context, filename string) {
c.Data["Title"] = c.Tr("repo.commits.commit_history") + " · " + c.Repo.Repository.FullName() c.Data["Title"] = c.Tr("repo.commits.commit_history") + " · " + c.Repo.Repository.FullName()
c.Data["PageIsCommits"] = true c.Data["PageIsCommits"] = true
c.Data["FileName"] = filename
page := c.QueryInt("page") page := c.QueryInt("page")
if page < 1 { if page < 1 {

Loading…
Cancel
Save