Browse Source

Fix typo of RunerOwnerID (#26508)

tags/v1.21.0-rc0
yp05327 10 months ago
parent
commit
bc930f332f
No account linked to committer's email address

+ 1
- 1
routers/web/shared/actions/runners.go View File

@@ -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)

+ 1
- 1
templates/shared/actions/runner_list.tmpl View File

@@ -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>

Loading…
Cancel
Save