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

Project: show referenced PRs in issue cards (#14183)

Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
Roberto Santalla
2021-01-20 20:53:48 +01:00
committed by GitHub
parent 172229966c
commit ef85bf84ee
4 changed files with 38 additions and 4 deletions

View File

@@ -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 }}