aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-04-19 21:51:20 +0900
committerGitHub <noreply@github.com>2023-04-19 20:51:20 +0800
commit01214c8ada993bf5f54a4149979d140443d69410 (patch)
tree17623b98c522109f794faef46c77a8c6a8335ab5 /templates
parent5e7543fcf441afb30aba6188edac754ef32b9ac3 (diff)
downloadgitea-01214c8ada993bf5f54a4149979d140443d69410.tar.gz
gitea-01214c8ada993bf5f54a4149979d140443d69410.zip
Add runner check in repo action page (#24124)
![image](https://user-images.githubusercontent.com/18380374/232996647-13c2b9f1-c9e9-42d9-acbf-8a6e16b175a6.png) Maybe we can also add online runner check? e.g. : Target runner is offline.
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/actions/list.tmpl8
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/repo/actions/list.tmpl b/templates/repo/actions/list.tmpl
index b0e513cfb2..15f0d607a3 100644
--- a/templates/repo/actions/list.tmpl
+++ b/templates/repo/actions/list.tmpl
@@ -10,14 +10,10 @@
<div class="divider"></div>
{{range .workflows}}
<a class="item{{if eq .Entry.Name $.CurWorkflow}} active{{end}}" href="{{$.Link}}?workflow={{.Entry.Name}}">{{.Entry.Name}}
- {{if .IsInvalid}}
- <span data-tooltip-content="{{$.locale.Tr "actions.runs.invalid_workflow_helper" (.ErrMsg)}}">
+ {{if .ErrMsg}}
+ <span data-tooltip-content="{{.ErrMsg}}">
<i class="warning icon red"></i>
</span>
- {{else}}
- <span data-tooltip-content="{{$.locale.Tr "actions.runs.valid_workflow_helper"}}">
- <i class="check icon green"></i>
- </span>
{{end}}
</a>
{{end}}