mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 14:59:06 +00:00
491f36d32a
Backport https://github.com/go-gitea/gitea/pull/25601 to 1.20. Various small enhancements to the actions list. Before and after: <img width="1264" alt="Screenshot 2023-06-30 at 00 11 40" src="https://github.com/go-gitea/gitea/assets/115237/bb4162ee-cdcf-4a73-b05e-f9521562edbb"> <img width="1264" alt="Screenshot 2023-06-30 at 00 09 51" src="https://github.com/go-gitea/gitea/assets/115237/52a70ea9-4bb3-406e-904b-0fdaafde9582"> Co-authored-by: Giteabot <teabot@gitea.io>
35 lines
1.4 KiB
Handlebars
35 lines
1.4 KiB
Handlebars
<div class="issue list gt-m-0">
|
|
{{range .Runs}}
|
|
<li class="item gt-df gt-py-3">
|
|
<div class="issue-item-left issue-item-icon gt-df gt-items-start">
|
|
{{template "repo/actions/status" (dict "status" .Status.String "locale" $.locale)}}
|
|
</div>
|
|
<div class="issue-item-main action-item-main">
|
|
<div class="issue-item-top-row">
|
|
<a class="index gt-no-underline title action-item-title" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
|
|
{{- .Title -}}
|
|
</a>
|
|
</div>
|
|
<div class="desc issue-item-bottom-row">
|
|
<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>
|
|
: {{$.locale.Tr "actions.runs.commit"}}
|
|
<a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>
|
|
{{$.locale.Tr "actions.runs.pushed_by"}}
|
|
<a href="{{.TriggerUser.HomeLink}}">{{.TriggerUser.GetDisplayName}}</a>
|
|
</div>
|
|
</div>
|
|
<div class="action-item-center">
|
|
{{if .RefLink}}
|
|
<a class="ui label gt-px-2 gt-mx-0" href="{{.RefLink}}">{{.PrettyRef}}</a>
|
|
{{else}}
|
|
<span class="ui label gt-px-2 gt-mx-0">{{.PrettyRef}}</span>
|
|
{{end}}
|
|
</div>
|
|
<div class="action-item-right">
|
|
<div>{{svg "octicon-calendar" 16 "gt-mr-2"}}{{TimeSinceUnix .Updated $.locale}}</div>
|
|
<div>{{svg "octicon-stopwatch" 16 "gt-mr-2"}}{{.Duration}}</div>
|
|
</div>
|
|
</li>
|
|
{{end}}
|
|
</div>
|
|
{{template "base/paginate" .}}
|