From 5c4265e7435216ed18bbfa67c281a880fcdcc895 Mon Sep 17 00:00:00 2001 From: Mathieu Fenniak Date: Thu, 27 Mar 2025 19:16:16 -0600 Subject: [PATCH] Rename query param --- routers/web/repo/actions/actions.go | 4 ++-- templates/repo/actions/list.tmpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/routers/web/repo/actions/actions.go b/routers/web/repo/actions/actions.go index 58f1fde607..7aa52ddd4c 100644 --- a/routers/web/repo/actions/actions.go +++ b/routers/web/repo/actions/actions.go @@ -68,7 +68,7 @@ func List(ctx *context.Context) { curWorkflow := ctx.FormString("workflow") ctx.Data["CurWorkflow"] = curWorkflow - listOnly := ctx.FormBool("listonly") + listInner := ctx.FormBool("list_inner") var workflows []Workflow if empty, err := ctx.Repo.GitRepo.IsEmpty(); err != nil { @@ -253,7 +253,7 @@ func List(ctx *context.Context) { ctx.Data["Page"] = pager ctx.Data["HasWorkflowsOrRuns"] = len(workflows) > 0 || len(runs) > 0 - if listOnly { + if listInner { ctx.HTML(http.StatusOK, tplListActionsInner) } else { ctx.HTML(http.StatusOK, tplListActions) diff --git a/templates/repo/actions/list.tmpl b/templates/repo/actions/list.tmpl index 9d19d2993e..bd73552d2a 100644 --- a/templates/repo/actions/list.tmpl +++ b/templates/repo/actions/list.tmpl @@ -7,7 +7,7 @@ {{/* Refresh the list every interval (30s) unless the document isn't visible or a dropdown is open; refresh if visibility changes as well. */}}