aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/actions/runs_list.tmpl
blob: 2a8522294318d2d9ce5b8e9cf92b73cdbb7aa041 (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
<div class="issue list">
	{{range .Runs}}
		<li class="item df py-3">
			<div class="issue-item-left df">
				{{template "repo/actions/status" .Status}}
			</div>
			<div class="issue-item-main f1 fc df">
				<div class="issue-item-top-row">
					<a class="index ml-0 mr-2" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
						{{.Title}}
					</a>
					<span class="ui label">
						{{if .RefLink}}
							<a href="{{.RefLink}}">{{.PrettyRef}}</a>
						{{else}}
							{{.PrettyRef}}
						{{end}}
					</span>
				</div>
				<div class="desc issue-item-bottom-row df ac fw my-1">
					<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>: {{$.locale.Tr "actions.runs.commit"}}
					<a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>&nbsp; {{$.locale.Tr "actions.runs.pushed_by"}} {{.TriggerUser.GetDisplayName | Escape}}
				</div>
			</div>
			<div class="issue-item-right">
				<div>{{TimeSinceUnix .Updated $.locale}}</div>
				<div>{{.Duration}}</div>
			</div>
		</li>
	{{end}}
</div>
{{template "base/paginate" .}}