mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.6 KiB
43 lines
1.6 KiB
<div class="flex-list">
|
|
{{if not .Runs}}
|
|
<div class="empty-placeholder">
|
|
{{svg "octicon-no-entry" 48}}
|
|
<h2>{{if $.IsFiltered}}{{ctx.Locale.Tr "actions.runs.no_results"}}{{else}}{{ctx.Locale.Tr "actions.runs.no_runs"}}{{end}}</h2>
|
|
</div>
|
|
{{end}}
|
|
{{range .Runs}}
|
|
<div class="flex-item gt-ac">
|
|
<div class="flex-item-leading">
|
|
{{template "repo/actions/status" (dict "status" .Status.String)}}
|
|
</div>
|
|
<div class="flex-item-main">
|
|
<a class="flex-item-title" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
|
|
{{if .Title}}{{.Title}}{{else}}{{ctx.Locale.Tr "actions.runs.empty_commit_message"}}{{end}}
|
|
</a>
|
|
<div class="flex-item-body">
|
|
<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>:
|
|
{{- if .ScheduleID -}}
|
|
{{ctx.Locale.Tr "actions.runs.scheduled"}}
|
|
{{- 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>
|
|
{{- end -}}
|
|
</div>
|
|
</div>
|
|
<div class="flex-item-trailing">
|
|
{{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="run-list-item-right">
|
|
<div class="run-list-meta">{{svg "octicon-calendar" 16}}{{TimeSinceUnix .Updated ctx.Locale}}</div>
|
|
<div class="run-list-meta">{{svg "octicon-stopwatch" 16}}{{.Duration}}</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
{{template "base/paginate" .}}
|
|
|