summaryrefslogtreecommitdiffstats
path: root/templates/shared/issuelist.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/shared/issuelist.tmpl')
-rw-r--r--templates/shared/issuelist.tmpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl
index 23fb76d500..5392365dd1 100644
--- a/templates/shared/issuelist.tmpl
+++ b/templates/shared/issuelist.tmpl
@@ -59,6 +59,27 @@
{{else}}
{{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName | Escape) | Safe}}
{{end}}
+ {{if .IsPull}}
+ <div class="branches">
+ <div class="branch">
+ <a class="bold" href="{{.PullRequest.BaseRepo.HTMLURL}}/src/branch/{{PathEscapeSegments .PullRequest.BaseBranch}}">
+ {{/* inline to remove the spaces between spans */}}
+ {{if ne .RepoID .PullRequest.BaseRepoID}}<span class="truncated-name">{{.PullRequest.BaseRepo.OwnerName}}</span>:{{end}}<span class="truncated-name">{{.PullRequest.BaseBranch}}</span>
+ </a>
+ </div>
+
+ &laquo;
+
+ {{if .PullRequest.HeadRepo}}
+ <div class="branch">
+ <a class="bold" href="{{.PullRequest.HeadRepo.HTMLURL}}/src/branch/{{PathEscapeSegments .PullRequest.HeadBranch}}">
+ {{/* inline to remove the spaces between spans */}}
+ {{if ne .RepoID .PullRequest.HeadRepoID}}<span class="truncated-name">{{.PullRequest.HeadRepo.OwnerName}}</span>:{{end}}<span class="truncated-name">{{.PullRequest.HeadBranch}}</span>
+ </a>
+ </div>
+ {{end}}
+ </div>
+ {{end}}
{{if and .Milestone (ne $.listType "milestone")}}
<a class="milestone" {{if $.RepoLink}}href="{{$.RepoLink}}/milestone/{{.Milestone.ID}}"{{else}}href="{{.Repo.Link}}/milestone/{{.Milestone.ID}}"{{end}}>
{{svg "octicon-milestone" 14 "mr-2"}}{{.Milestone.Name}}