From 5141bbd9ba1445a9cbe3103319ae516c178d4e17 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Thu, 27 Apr 2023 17:44:38 +0900 Subject: Display 'Unknown' when runner.version is empty (#24378) Before: ![image](https://user-images.githubusercontent.com/18380374/234782197-43d8f86d-afe2-4626-8e46-b621d7cde8f9.png) After: ![image](https://user-images.githubusercontent.com/18380374/234782064-6828ae3b-5957-451f-82bb-22ab60b6c2a8.png) --- templates/shared/actions/runner_list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/shared') diff --git a/templates/shared/actions/runner_list.tmpl b/templates/shared/actions/runner_list.tmpl index e738a581c3..f8b056ae7a 100644 --- a/templates/shared/actions/runner_list.tmpl +++ b/templates/shared/actions/runner_list.tmpl @@ -64,7 +64,7 @@ {{.ID}}

{{.Name}}

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