Skip to content

Commit e849125

Browse files
committed
Use pulls in commit graph unless pulls are disabled
Fix go-gitea#15370 Signed-off-by: Andrew Thornton <[email protected]>
1 parent d4f28fd commit e849125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/graph/commits.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{{if eq $refGroup "pull"}}
3636
{{if or (not $.HidePRRefs) (containGeneric $.SelectedBranches .Name)}}
3737
<!-- it's intended to use issues not pulls, if it's a pull you will get redirected -->
38-
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
38+
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/{{if $.Repository.UnitEnabled $.UnitTypePullRequests}}pulls{{else}}issues{{end}}/{{.ShortName|PathEscape}}">
3939
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
4040
</a>
4141
{{end}}

0 commit comments

Comments
 (0)