diff options
author | Roberto Santalla <roobre@users.noreply.github.com> | 2021-01-20 20:53:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 21:53:48 +0200 |
commit | ef85bf84ee42678c1dcb3d6ea69565737c2f6eed (patch) | |
tree | 0c5c16a85733ba74c175a122feae2bd95a2655f8 /templates/repo/projects | |
parent | 172229966c9c69305d7b6b9b69552346343fe270 (diff) | |
download | gitea-ef85bf84ee42678c1dcb3d6ea69565737c2f6eed.tar.gz gitea-ef85bf84ee42678c1dcb3d6ea69565737c2f6eed.zip |
Project: show referenced PRs in issue cards (#14183)
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates/repo/projects')
-rw-r--r-- | templates/repo/projects/view.tmpl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl index a3606c169c..9b2aa4bc7d 100644 --- a/templates/repo/projects/view.tmpl +++ b/templates/repo/projects/view.tmpl @@ -166,13 +166,21 @@ </span> <a class="project-board-title" href="{{$.RepoLink}}/issues/{{.Index}}">#{{.Index}} {{.Title}}</a> </div> + {{- if .MilestoneID }} <div class="meta"> - {{ if .MilestoneID }} <a class="milestone" href="{{$.RepoLink}}/milestone/{{ .MilestoneID}}"> {{svg "octicon-milestone"}} {{ .Milestone.Name }} </a> - {{ end }} </div> + {{- end }} + {{- range index $.LinkedPRs .ID }} + <div class="meta"> + <a href="{{$.RepoLink}}/pulls/{{ .ID }}"> + <span class="{{if .PullRequest.HasMerged}}purple{{else if .IsClosed}}red{{else}}green{{end}}">{{svg "octicon-git-merge"}}</span> + {{ .Title}} (#{{ .ID }}) + </a> + </div> + {{- end }} </div> <div class="extra content"> {{ range .Labels }} |