mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-10 13:29:43 +02:00
Avoid empty labelled anchor in repo without commits. Contributed by @forgejo. <!-- Please check the following: 1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for bug fixes. 2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md 3. Describe what your pull request does and which issue you're targeting (if any) -->
15 lines
742 B
Handlebars
15 lines
742 B
Handlebars
{{if eq (len .Statuses) 1}}{{$status := index .Statuses 0}}{{if $status.TargetURL}}<a class="ui link commit-statuses-trigger vm" href="{{$status.TargetURL}}">{{template "repo/commit_status" .Status}}</a>{{end}}{{end}}
|
|
<div class="ui commit-statuses-popup commit-statuses tippy-target">
|
|
<div class="ui relaxed list divided">
|
|
{{range .Statuses}}
|
|
<div class="ui item singular-status df">
|
|
{{template "repo/commit_status" .}}
|
|
<span class="ui ml-3 f1">{{.Context}} <span class="text grey">{{.Description}}</span></span>
|
|
{{if .TargetURL}}
|
|
<a class="ml-3" href="{{.TargetURL}}" target="_blank" rel="noopener noreferrer">{{$.root.locale.Tr "repo.pulls.status_checks_details"}}</a>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|