aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKN4CK3R <KN4CK3R@users.noreply.github.com>2021-05-05 17:57:39 +0200
committerGitHub <noreply@github.com>2021-05-05 17:57:39 +0200
commit5e98d670d36f6228702af6db20afaff5761931bb (patch)
tree13318f4df2568931394aec27698d18c15fd709be
parenteed88dc34d2f6cfa60e04eb60e27af3ecc97e999 (diff)
downloadgitea-5e98d670d36f6228702af6db20afaff5761931bb.tar.gz
gitea-5e98d670d36f6228702af6db20afaff5761931bb.zip
Commit Graph: Pull-Requests should not link to issues (#15734)
Use `/pulls` and simplify code.
-rw-r--r--templates/repo/graph/commits.tmpl10
1 files changed, 2 insertions, 8 deletions
diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl
index 8f3260ba50..d08539ebeb 100644
--- a/templates/repo/graph/commits.tmpl
+++ b/templates/repo/graph/commits.tmpl
@@ -33,14 +33,8 @@
{{range $commit.Refs}}
{{$refGroup := .RefGroup}}
{{if eq $refGroup "pull"}}
- {{if $.HidePRRefs}}
- {{if (containGeneric $.SelectedBranches .Name) }}
- <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
- {{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
- </a>
- {{end}}
- {{else}}
- <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
+ {{if or (not $.HidePRRefs) (containGeneric $.SelectedBranches .Name)}}
+ <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/pulls/{{.ShortName|PathEscape}}">
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
</a>
{{end}}