diff options
author | Douglas Thrift <douglaswth@gmail.com> | 2018-03-06 13:46:53 -0800 |
---|---|---|
committer | jc <u@gogs.io> | 2018-03-06 16:46:53 -0500 |
commit | 0bfce7aca495d72c9390142f436ac3fceb25ed97 (patch) | |
tree | 4f4505b4ab43401792fe31e64a20d0dff9c3fbe8 | |
parent | 7faa2356d8e9b3266807d978d9c9eafdbf763182 (diff) |
repo/commit: fix file commit history pagination (#4965)
- 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`.
-rw-r--r-- | routes/repo/commit.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/repo/commit.go b/routes/repo/commit.go index 17ea5dbe..9069f44e 100644 --- a/routes/repo/commit.go +++ b/routes/repo/commit.go @@ -45,6 +45,7 @@ func RenderIssueLinks(oldCommits *list.List, repoLink string) *list.List { func renderCommits(c *context.Context, filename string) { c.Data["Title"] = c.Tr("repo.commits.commit_history") + " ยท " + c.Repo.Repository.FullName() c.Data["PageIsCommits"] = true + c.Data["FileName"] = filename page := c.QueryInt("page") if page < 1 { |