Skip to content

Commit 6e1f392

Browse files
committed
simplify
1 parent de1799b commit 6e1f392

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

templates/repo/actions/runs_list.tmpl

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@
1515
{{or $run.Title (ctx.Locale.Tr "actions.runs.empty_commit_message")}}
1616
</a>
1717
<div class="flex-item-body">
18-
<div class="flex-text-block">
19-
<span><b>{{if not $.CurWorkflow}}{{$run.WorkflowID}} {{end}}#{{$run.Index}}</b>:</span>
20-
{{- if $run.ScheduleID -}}
21-
{{ctx.Locale.Tr "actions.runs.scheduled"}}
22-
{{- else -}}
23-
{{ctx.Locale.Tr "actions.runs.commit"}}
24-
<a href="{{$.RepoLink}}/commit/{{$run.CommitSHA}}">{{ShortSha $run.CommitSHA}}</a>
25-
{{ctx.Locale.Tr "actions.runs.pushed_by"}}
26-
<a href="{{$run.TriggerUser.HomeLink}}">{{$run.TriggerUser.GetDisplayName}}</a>
27-
{{- end -}}
28-
{{$errMsg := index $.RunErrors $run.ID}}
29-
{{if $errMsg}}
30-
<span class="flex-text-inline" data-tooltip-content="{{$errMsg}}">
31-
{{svg "octicon-alert" 16 "text red"}}
32-
</span>
33-
{{end}}
34-
</div>
18+
<span><b>{{if not $.CurWorkflow}}{{$run.WorkflowID}} {{end}}#{{$run.Index}}</b>:</span>
19+
20+
{{- if $run.ScheduleID -}}
21+
{{ctx.Locale.Tr "actions.runs.scheduled"}}
22+
{{- else -}}
23+
{{ctx.Locale.Tr "actions.runs.commit"}}
24+
<a href="{{$.RepoLink}}/commit/{{$run.CommitSHA}}">{{ShortSha $run.CommitSHA}}</a>
25+
{{ctx.Locale.Tr "actions.runs.pushed_by"}}
26+
<a href="{{$run.TriggerUser.HomeLink}}">{{$run.TriggerUser.GetDisplayName}}</a>
27+
{{- end -}}
28+
29+
{{$errMsg := index $.RunErrors $run.ID}}
30+
{{if $errMsg}}
31+
<span class="flex-text-inline" data-tooltip-content="{{$errMsg}}">
32+
{{svg "octicon-alert" 16 "text red"}}
33+
</span>
34+
{{end}}
3535
</div>
3636
</div>
3737
<div class="flex-item-trailing">

0 commit comments

Comments
 (0)