summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-03-14 16:27:03 +0900
committerGitHub <noreply@github.com>2023-03-14 15:27:03 +0800
commitaac07d010f261c00fb3bd9644c71dc108c668c11 (patch)
tree1270a43ca5eec3c2cb392f63788250e755a37e36 /templates/repo
parent6ff5400af91aefb02cbc7dd59f6be23cc2bf7865 (diff)
downloadgitea-aac07d010f261c00fb3bd9644c71dc108c668c11.tar.gz
gitea-aac07d010f261c00fb3bd9644c71dc108c668c11.zip
Add workflow error notification in ui (#23404)
![image](https://user-images.githubusercontent.com/18380374/224237847-07a30029-32d4-4af7-a36e-e55f0ed899aa.png) ![image](https://user-images.githubusercontent.com/18380374/224239309-a96120e1-5eec-41c0-89aa-9cf63d1df30c.png) --------- Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/actions/list.tmpl12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/repo/actions/list.tmpl b/templates/repo/actions/list.tmpl
index c5abff5251..5e8313fa5e 100644
--- a/templates/repo/actions/list.tmpl
+++ b/templates/repo/actions/list.tmpl
@@ -9,7 +9,17 @@
<a class="item{{if not $.CurWorkflow}} active{{end}}" href="{{$.Link}}">{{.locale.Tr "actions.runs.all_workflows"}}</a>
<div class="divider"></div>
{{range .workflows}}
- <a class="item{{if eq .Name $.CurWorkflow}} active{{end}}" href="{{$.Link}}?workflow={{.Name}}">{{.Name}}</a>
+ <a class="item{{if eq .Entry.Name $.CurWorkflow}} active{{end}}" href="{{$.Link}}?workflow={{.Entry.Name}}">{{.Entry.Name}}
+ {{if .IsInvalid}}
+ <span class="tooltip" data-content="{{$.locale.Tr "actions.runs.invalid_workflow_helper" (.ErrMsg)}}">
+ <i class="warning icon red"></i>
+ </span>
+ {{else}}
+ <span class="tooltip" data-content="{{$.locale.Tr "actions.runs.valid_workflow_helper"}}">
+ <i class="check icon green"></i>
+ </span>
+ {{end}}
+ </a>
{{end}}
</div>
</div>