Skip to content

Commit

Permalink
Commit Graph: Pull-Requests should not link to issues (go-gitea#15734)
Browse files Browse the repository at this point in the history
Use `/pulls` and simplify code.
  • Loading branch information
KN4CK3R authored and AbdulrhmnGhanem committed Aug 10, 2021
1 parent 5b5e95e commit 0a6fa13
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions templates/repo/graph/commits.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 0a6fa13

Please sign in to comment.