mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-30 16:11:39 +00:00
ff85dd3e12
* Add commit statuses reports on pull view * Add some translations * improve the UI * fix fmt * fix tests * add a new test git repo to fix tests * fix bug when headRepo or headBranch missing * fix tests * fix tests * fix consistency * fix tests * fix tests * change the test repo * fix tests * fix tests * fix migration * keep db size consistency * fix translation * change commit hash status table unique index * remove unused table * use char instead varchar * make hashCommitStatusContext private * split merge section with status check on pull view ui * fix tests; fix arc-green theme on pull ui
21 lines
887 B
Cheetah
21 lines
887 B
Cheetah
{{if $.LatestCommitStatus}}
|
|
<div class="ui top attached header">
|
|
{{if eq .LatestCommitStatus.State "pending"}}
|
|
{{$.i18n.Tr "repo.pulls.status_checking"}}
|
|
{{else if eq .LatestCommitStatus.State "success"}}
|
|
{{$.i18n.Tr "repo.pulls.status_checks_success"}}
|
|
{{else if eq .LatestCommitStatus.State "error"}}
|
|
{{$.i18n.Tr "repo.pulls.status_checks_error"}}
|
|
{{else}}
|
|
{{$.i18n.Tr "repo.pulls.status_checking"}}
|
|
{{end}}
|
|
</div>
|
|
|
|
{{range $.LatestCommitStatuses}}
|
|
<div class="ui attached segment">
|
|
<span>{{template "repo/commit_status" .}}</span>
|
|
<span class="ui">{{.Context}} <span class="text grey">{{.Description}}</span></span>
|
|
<div class="ui right">{{if .TargetURL}}<a href="{{.TargetURL}}">Details</a>{{end}}</div>
|
|
</div>
|
|
{{end}}
|
|
{{end}} |