summaryrefslogtreecommitdiffstats
path: root/templates/repo/actions/runs_list.tmpl
blob: bfd5aabe55b3ad5ebf4183de8e61276b6dd8b2fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<div class="issue list gt-m-0">
	{{if eq (len .Runs) 0}}
	<div class="empty center">
		{{svg "octicon-no-entry" 48}}
		<h2>{{if $.IsFiltered}}{{.locale.Tr "actions.runs.no_results"}}{{else}}{{.locale.Tr "actions.runs.no_runs"}}{{end}}</h2>
	</div>
	{{end}}
	{{range .Runs}}
		<li class="item gt-df gt-py-4">
			<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 gt-f1 gt-fc gt-df gt-mr-3">
				<div class="issue-item-top-row gt-mb-2">
					<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 gt-df gt-ac gt-fw">
					<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"}} {{.TriggerUser.GetDisplayName}}
					<span class="ui label">
						{{if .RefLink}}
							<a href="{{.RefLink}}">{{.PrettyRef}}</a>
						{{else}}
							{{.PrettyRef}}
						{{end}}
					</span>
				</div>
			</div>
			<div class="issue-item-right">
				<div>{{TimeSinceUnix .Updated $.locale}}</div>
				<div>{{.Duration}}</div>
			</div>
		</li>
	{{end}}
</div>
{{template "base/paginate" .}}