diff options
author | yp05327 <576951401@qq.com> | 2023-03-14 16:27:03 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 15:27:03 +0800 |
commit | aac07d010f261c00fb3bd9644c71dc108c668c11 (patch) | |
tree | 1270a43ca5eec3c2cb392f63788250e755a37e36 /templates/repo | |
parent | 6ff5400af91aefb02cbc7dd59f6be23cc2bf7865 (diff) | |
download | gitea-aac07d010f261c00fb3bd9644c71dc108c668c11.tar.gz gitea-aac07d010f261c00fb3bd9644c71dc108c668c11.zip |
Add workflow error notification in ui (#23404)


---------
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.tmpl | 12 |
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> |