diff options
Diffstat (limited to 'templates/repo/actions/list.tmpl')
-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> |