summaryrefslogtreecommitdiffstats
path: root/templates/shared
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-04-27 17:44:38 +0900
committerGitHub <noreply@github.com>2023-04-27 16:44:38 +0800
commit5141bbd9ba1445a9cbe3103319ae516c178d4e17 (patch)
tree76da066f7ce08718bf0318c8495547d95bd27dac /templates/shared
parent62ca5825f73ad5a25ffeb6c3ef66f0eaf5d30cdf (diff)
downloadgitea-5141bbd9ba1445a9cbe3103319ae516c178d4e17.tar.gz
gitea-5141bbd9ba1445a9cbe3103319ae516c178d4e17.zip
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)
Diffstat (limited to 'templates/shared')
-rw-r--r--templates/shared/actions/runner_list.tmpl2
1 files changed, 1 insertions, 1 deletions
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 @@
</td>
<td>{{.ID}}</td>
<td><p data-tooltip-content="{{.Description}}">{{.Name}}</p></td>
- <td>{{.Version}}</td>
+ <td>{{if .Version}}{{.Version}}{{else}}{{$.locale.Tr "unknown"}}{{end}}</td>
<td>{{.OwnType}}</td>
<td class="runner-tags">
{{range .AllLabels}}<span class="ui label">{{.}}</span>{{end}}