aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-08-16 08:10:40 +0900
committerGitHub <noreply@github.com>2023-08-15 23:10:40 +0000
commitbc930f332f70ed2259740325592f054cc01a01cf (patch)
tree0de9eecf892d397730d8c8ef74d9351c38fbe045
parent8703b6c954893b74a0f97aaa8079c968a4d245cc (diff)
downloadgitea-bc930f332f70ed2259740325592f054cc01a01cf.tar.gz
gitea-bc930f332f70ed2259740325592f054cc01a01cf.zip
Fix typo of RunerOwnerID (#26508)
-rw-r--r--routers/web/shared/actions/runners.go2
-rw-r--r--templates/shared/actions/runner_list.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/shared/actions/runners.go b/routers/web/shared/actions/runners.go
index eb84cc4a2e..cab3d78cac 100644
--- a/routers/web/shared/actions/runners.go
+++ b/routers/web/shared/actions/runners.go
@@ -51,7 +51,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 36210af6d8..c4b70282ae 100644
--- a/templates/shared/actions/runner_list.tmpl
+++ b/templates/shared/actions/runner_list.tmpl
@@ -71,7 +71,7 @@
</td>
<td>{{if .LastOnline}}{{TimeSinceUnix .LastOnline $.locale}}{{else}}{{$.locale.Tr "never"}}{{end}}</td>
<td class="runner-ops">
- {{if .Editable $.RunnerOnwerID $.RunnerRepoID}}
+ {{if .Editable $.RunnerOwnerID $.RunnerRepoID}}
<a href="{{$.Link}}/{{.ID}}">{{svg "octicon-pencil"}}</a>
{{end}}
</td>