From a8b0d08500ced291e8062472977547b8d0ba0373 Mon Sep 17 00:00:00 2001 From: Douglas Thrift Date: Sat, 30 Dec 2017 19:36:21 -0800 Subject: [PATCH] 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`. --- routes/repo/commit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/repo/commit.go b/routes/repo/commit.go index 17ea5dbe3..9069f44eb 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 {