From 49808136c5af5946851c5486d4630482d79eff8b Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Fri, 12 May 2023 17:43:27 +0900 Subject: Display owner of a runner as a tooltip instead of static text (#24377) Before: ![image](https://user-images.githubusercontent.com/18380374/234779250-8bbd325c-190e-4a30-ac3e-766498d17df5.png) After: ![image](https://user-images.githubusercontent.com/18380374/234779094-e232ecba-d9f4-4d62-a702-6d5e4a522782.png) ![image](https://user-images.githubusercontent.com/18380374/234779120-0293af17-a566-4b69-b454-af4e95844e3b.png) --------- Co-authored-by: silverwind Co-authored-by: Giteabot Co-authored-by: wxiaoguang Co-authored-by: Lunny Xiao --- templates/shared/actions/runner_edit.tmpl | 10 +++++----- templates/shared/actions/runner_list.tmpl | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/shared/actions/runner_edit.tmpl b/templates/shared/actions/runner_edit.tmpl index 94da2269b7..657d565d64 100644 --- a/templates/shared/actions/runner_edit.tmpl +++ b/templates/shared/actions/runner_edit.tmpl @@ -7,15 +7,15 @@ {{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}}
-
+
{{.Runner.StatusLocaleName $.locale}}
-
+
{{if .LastOnline}}{{TimeSinceUnix .LastOnline $.locale}}{{else}}{{$.locale.Tr "never"}}{{end}}
-
+
{{range .Runner.AgentLabels}} @@ -23,9 +23,9 @@ {{end}}
-
+
- {{.Runner.OwnType}} + {{.Runner.BelongsToOwnerType.LocaleString $.locale}}
diff --git a/templates/shared/actions/runner_list.tmpl b/templates/shared/actions/runner_list.tmpl index f8b056ae7a..7c786d8807 100644 --- a/templates/shared/actions/runner_list.tmpl +++ b/templates/shared/actions/runner_list.tmpl @@ -65,7 +65,7 @@ {{.ID}}

{{.Name}}

{{if .Version}}{{.Version}}{{else}}{{$.locale.Tr "unknown"}}{{end}} - {{.OwnType}} + {{.BelongsToOwnerType.LocaleString $.locale}} {{range .AllLabels}}{{.}}{{end}} -- cgit v1.2.3