From 44658b7d2ce842b4123a1ce02952f569b8a415ef Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 16 Aug 2023 14:28:39 +0800 Subject: [PATCH] Fix typo of RunerOwnerID (#26508) (#26528) Backport #26508 by @yp05327 Co-authored-by: yp05327 <576951401@qq.com> (cherry picked from commit 0ac8b774e95cecd1050d7a759f3830b3198b63fd) --- routers/web/shared/actions/runners.go | 2 +- templates/shared/actions/runner_list.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/web/shared/actions/runners.go b/routers/web/shared/actions/runners.go index 44c835a6c5..886efccb0d 100644 --- a/routers/web/shared/actions/runners.go +++ b/routers/web/shared/actions/runners.go @@ -53,7 +53,7 @@ func RunnersList(ctx *context.Context, opts actions_model.FindRunnerOptions) { ctx.Data["Runners"] = runners ctx.Data["Total"] = count ctx.Data["RegistrationToken"] = token.Token - ctx.Data["RunnerOnwerID"] = opts.OwnerID + ctx.Data["RunnerOwnerID"] = opts.OwnerID ctx.Data["RunnerRepoID"] = opts.RepoID pager := context.NewPagination(int(count), opts.PageSize, opts.Page, 5) diff --git a/templates/shared/actions/runner_list.tmpl b/templates/shared/actions/runner_list.tmpl index c9bde7019d..cd4f5885d0 100644 --- a/templates/shared/actions/runner_list.tmpl +++ b/templates/shared/actions/runner_list.tmpl @@ -71,7 +71,7 @@ {{if .LastOnline}}{{TimeSinceUnix .LastOnline $.locale}}{{else}}{{$.locale.Tr "never"}}{{end}} - {{if .Editable $.RunnerOnwerID $.RunnerRepoID}} + {{if .Editable $.RunnerOwnerID $.RunnerRepoID}} {{svg "octicon-pencil"}} {{end}}