summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorElias Norberg <elias@aisle.se>2019-04-02 21:54:29 +0200
committertechknowlogick <matti@mdranta.net>2019-04-02 15:54:29 -0400
commitbf5af87eef8913004df63aef58f71628f9c057d0 (patch)
tree9f49b1076a95d0ebc961a71a3ebb5d146c5d64c3 /templates
parent09fb036ad625ec5178319c30df47aac313fdbbe3 (diff)
downloadgitea-bf5af87eef8913004df63aef58f71628f9c057d0.tar.gz
gitea-bf5af87eef8913004df63aef58f71628f9c057d0.zip
Show last commit status in pull request lists (#6465)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/list.tmpl6
-rw-r--r--templates/user/dashboard/issues.tmpl6
2 files changed, 12 insertions, 0 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl
index 78352acb50..88716484d2 100644
--- a/templates/repo/issue/list.tmpl
+++ b/templates/repo/issue/list.tmpl
@@ -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}}
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl
index 93286df578..0caa9a60dd 100644
--- a/templates/user/dashboard/issues.tmpl
+++ b/templates/user/dashboard/issues.tmpl
@@ -66,6 +66,12 @@
<div class="ui label">{{if not $.RepoID}}{{.Repo.FullName}}{{end}}#{{.Index}}</div>
<a class="title has-emoji" href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/issues/{{.Index}}">{{.Title}}</a>
+ {{if .IsPull }}
+ {{if (index $.CommitStatus .ID)}}
+ {{template "repo/commit_status" (index $.CommitStatus .ID)}}
+ {{end}}
+ {{end}}
+
{{with .Labels}}
{{/* If we have any labels, we should show them
with a 2.5 line height, this way they don't look