current page

This commit is contained in:
Lunny Xiao
2022-11-25 17:48:46 +08:00
committed by Jason Song
parent e28c95ea5c
commit e5b835cf52
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ func MustEnableBuilds(ctx *context.Context) {
func List(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("repo.builds")
ctx.Data["PageIsBuildList"] = true
ctx.Data["PageIsBuilds"] = true
defaultBranch, err := ctx.Repo.GitRepo.GetDefaultBranch()
if err != nil {
+1
View File
@@ -13,6 +13,7 @@ import (
)
func View(ctx *context.Context) {
ctx.Data["PageIsBuilds"] = true
runIndex := ctx.ParamsInt64("run")
jobIndex := ctx.ParamsInt64("job")
ctx.Data["RunIndex"] = runIndex