mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-08-22 04:28:06 +02:00
I haven't tested `runs_list.tmpl` but I think it could be right. After this PR, besides the `<meta .. HTMLURL>` in html head, the only explicit HTMLURL usage is in `pull_merge_instruction.tmpl`, which doesn't affect users too much and it's difficult to fix at the moment. There are still many usages of `AppUrl` in the templates (eg: the package help manual), they are similar problems as the HTMLURL in pull_merge_instruction, and they might be fixed together in the future. Diff without space: https://github.com/go-gitea/gitea/pull/22831/files?diff=unified&w=1
32 lines
1.1 KiB
Handlebars
32 lines
1.1 KiB
Handlebars
<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> {{$.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" .}}
|