Skip to content

Commit

Permalink
Update routers/repo/branch.go
Browse files Browse the repository at this point in the history
Co-authored-by: 6543 <6543@obermui.de>
  • Loading branch information
skyline75489 and 6543 authored Jan 12, 2021
1 parent f866033 commit f42506d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routers/repo/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func Branches(ctx *context.Context) {
}

branches, branchesCount := loadBranches(ctx, page, pageSize)
if ctx.Written() {
return
}
ctx.Data["Branches"] = branches
pager := context.NewPagination(int(branchesCount), git.BranchesRangeSize, page, 5)
pager.SetDefaultParams(ctx)
Expand Down

0 comments on commit f42506d

Please sign in to comment.