add div to tmpl

This commit is contained in:
yp05327 2024-04-19 07:34:02 +00:00
parent 220c3221cb
commit d30004a596
1 changed files with 7 additions and 5 deletions

View File

@ -17,12 +17,14 @@
<div class="flex-item-body"> <div class="flex-item-body">
<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>: <b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>:
{{- if .ScheduleID -}} {{- if .ScheduleID -}}
{{ctx.Locale.Tr "actions.runs.scheduled"}} <div>{{ctx.Locale.Tr "actions.runs.scheduled"}}</div>
{{- else -}} {{- else -}}
{{ctx.Locale.Tr "actions.runs.commit"}} <div>
<a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a> {{ctx.Locale.Tr "actions.runs.commit"}}
{{ctx.Locale.Tr "actions.runs.pushed_by"}} <a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>
<a href="{{.TriggerUser.HomeLink}}">{{.TriggerUser.GetDisplayName}}</a> {{ctx.Locale.Tr "actions.runs.pushed_by"}}
<a href="{{.TriggerUser.HomeLink}}">{{.TriggerUser.GetDisplayName}}</a>
</div>
{{- end -}} {{- end -}}
</div> </div>
</div> </div>