Update template

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
NorthRealm 2025-05-12 07:38:17 +00:00 committed by GitHub
parent 1eed130607
commit fbd1a0e6b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@
<div class="run-list-meta">{{svg "octicon-calendar" 16}}{{DateUtils.TimeSince .Updated}}</div>
<div class="run-list-meta">{{svg "octicon-stopwatch" 16}}{{.Duration}}</div>
</div>
{{if and ($.AllowDeleteWorkflowRuns) (.Link) (or (eq .Status.String "success") (eq .Status.String "skipped") (eq .Status.String "cancelled"))}}
{{if and ($.AllowDeleteWorkflowRuns) (.Link) (.Status.IsDone)}}
<button class="ui btn interact-bg link-action tw-p-2"
data-url="{{.Link}}/delete"
data-modal-confirm="{{ctx.Locale.Tr "actions.runs.delete.description"}}"