Improve ui for builds

This commit is contained in:
Lunny Xiao
2022-10-19 22:31:05 +08:00
committed by Jason Song
parent d69423a3b0
commit 3518c098b9
6 changed files with 75 additions and 47 deletions

View File

@@ -65,13 +65,16 @@ func List(ctx *context.Context) {
page = 1
}
workflow := ctx.FormString("workflow")
ctx.Data["CurWorkflow"] = workflow
opts := bots_model.FindRunOptions{
ListOptions: db.ListOptions{
Page: page,
PageSize: convert.ToCorrectPageSize(ctx.FormInt("limit")),
},
RepoID: ctx.Repo.Repository.ID,
WorkflowFileName: ctx.FormString("workflow"),
WorkflowFileName: workflow,
}
if ctx.FormString("state") == "closed" {
opts.IsClosed = util.OptionalBoolTrue