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">
<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>:
{{- if .ScheduleID -}}
{{ctx.Locale.Tr "actions.runs.scheduled"}}
<div>{{ctx.Locale.Tr "actions.runs.scheduled"}}</div>
{{- else -}}
{{ctx.Locale.Tr "actions.runs.commit"}}
<a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>
{{ctx.Locale.Tr "actions.runs.pushed_by"}}
<a href="{{.TriggerUser.HomeLink}}">{{.TriggerUser.GetDisplayName}}</a>
<div>
{{ctx.Locale.Tr "actions.runs.commit"}}
<a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>
{{ctx.Locale.Tr "actions.runs.pushed_by"}}
<a href="{{.TriggerUser.HomeLink}}">{{.TriggerUser.GetDisplayName}}</a>
</div>
{{- end -}}
</div>
</div>