diff options
author | zeripath <art27@cantab.net> | 2021-05-07 19:10:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 20:10:30 +0200 |
commit | a4c13229b7e8db2f8eaf628d1f0d67836c782ea2 (patch) | |
tree | d9516739eb4303e1bd3dd34dc048db691d9da9fe /templates/repo/graph | |
parent | d4f28fd4ad37398d0ef953866943972a1147dc55 (diff) | |
download | gitea-a4c13229b7e8db2f8eaf628d1f0d67836c782ea2.tar.gz gitea-a4c13229b7e8db2f8eaf628d1f0d67836c782ea2.zip |
Use pulls in commit graph unless pulls are disabled (#15774)
Fix #15370
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/repo/graph')
-rw-r--r-- | templates/repo/graph/commits.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl index bf67596bc6..3427aed58c 100644 --- a/templates/repo/graph/commits.tmpl +++ b/templates/repo/graph/commits.tmpl @@ -35,7 +35,7 @@ {{if eq $refGroup "pull"}} {{if or (not $.HidePRRefs) (containGeneric $.SelectedBranches .Name)}} <!-- it's intended to use issues not pulls, if it's a pull you will get redirected --> - <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}"> + <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/{{if $.Repository.UnitEnabled $.UnitTypePullRequests}}pulls{{else}}issues{{end}}/{{.ShortName|PathEscape}}"> {{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}} </a> {{end}} |