From b758241f28bb980c8c812e29bcdc4d8d2943e8d1 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 23 Apr 2025 23:34:18 +0800 Subject: [PATCH] Fix runner list tmpl (#34270) Fix #34269 And fix some layout problems. --- templates/shared/actions/runner_list.tmpl | 18 +++++++----------- web_src/css/actions.css | 8 -------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/templates/shared/actions/runner_list.tmpl b/templates/shared/actions/runner_list.tmpl index b8f31de43b..43321a8dc5 100644 --- a/templates/shared/actions/runner_list.tmpl +++ b/templates/shared/actions/runner_list.tmpl @@ -64,27 +64,23 @@ - {{if .Runners}} - {{range .Runners}} + {{range .Runners}} - - {{.StatusLocaleName ctx.Locale}} - + {{.StatusLocaleName ctx.Locale}} {{.ID}}

{{.Name}}

{{if .Version}}{{.Version}}{{else}}{{ctx.Locale.Tr "unknown"}}{{end}} {{.BelongsToOwnerType.LocaleString ctx.Locale}} - - {{range .AgentLabels}}{{.}}{{end}} + + {{range .AgentLabels}}{{.}}{{end}} {{if .LastOnline}}{{DateUtils.TimeSince .LastOnline}}{{else}}{{ctx.Locale.Tr "never"}}{{end}} - - {{if .Editable $.RunnerOwnerID $.RunnerRepoID}} - {{svg "octicon-pencil"}} + + {{if .EditableInContext $.RunnerOwnerID $.RunnerRepoID}} + {{svg "octicon-pencil"}} {{end}} - {{end}} {{else}} {{ctx.Locale.Tr "actions.runners.none"}} diff --git a/web_src/css/actions.css b/web_src/css/actions.css index 0ab09f537a..665893a287 100644 --- a/web_src/css/actions.css +++ b/web_src/css/actions.css @@ -6,14 +6,6 @@ overflow-x: auto; } -.runner-container .runner-ops > a { - margin-left: 0.5em; -} - -.runner-container .runner-ops-delete { - color: var(--color-red-light); -} - .runner-container .runner-new-text { color: var(--color-white); }