summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven <61625851+justusbunsi@users.noreply.github.com>2021-08-21 02:02:47 +0200
committerGitHub <noreply@github.com>2021-08-21 01:02:47 +0100
commite9747de95242807a6319e146216575676de66f47 (patch)
tree80dc2c85faed3ad49de440dc1ea21240312527e6
parent3ecc4a1b9e66bdf0e5f46004ed8a5aae98a382aa (diff)
downloadgitea-e9747de95242807a6319e146216575676de66f47.tar.gz
gitea-e9747de95242807a6319e146216575676de66f47.zip
Fix dependency link rendering in PR sidebar (#16754)
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
-rw-r--r--templates/repo/issue/view_content/sidebar.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index 2f42957266..dc5f246d27 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -490,7 +490,7 @@
{{range .BlockedByDependencies}}
<div class="item dependency{{if .Issue.IsClosed}} is-closed{{end}} df ac sb">
<div class="item-left df jc fc f1">
- <a class="title" href="{{.Repository.Link}}/issues/{{.Issue.Index}}">
+ <a class="title" href="{{.Repository.Link}}/{{if .Issue.IsPull}}pulls{{else}}issues{{end}}/{{.Issue.Index}}">
#{{.Issue.Index}} {{.Issue.Title | RenderEmoji}}
</a>
<div class="text small">