1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Show last commit status in pull request lists (#6465)

This commit is contained in:
Elias Norberg
2019-04-02 21:54:29 +02:00
committed by techknowlogick
parent 09fb036ad6
commit bf5af87eef
6 changed files with 144 additions and 0 deletions

View File

@@ -203,6 +203,12 @@
<div class="ui {{if .IsRead}}black{{else}}green{{end}} label">#{{.Index}}</div>
<a class="title has-emoji" href="{{$.Link}}/{{.Index}}">{{.Title}}</a>
{{if .IsPull }}
{{if (index $.CommitStatus .ID)}}
{{template "repo/commit_status" (index $.CommitStatus .ID)}}
{{end}}
{{end}}
{{if .Ref}}
<a class="ui label" href="{{$.RepoLink}}/src/branch/{{.Ref}}">{{.Ref}}</a>
{{end}}