Use correct pull request commit link instead of a generic commit link (#26434)
Replace #26197 Since #25528 merged, the links of pull request commits should be redirect to pull file changes UI but not the generic one. --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
7018659a1d
commit
ca74b074ea
|
@ -43,6 +43,8 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if $.PageIsWiki}}
|
{{if $.PageIsWiki}}
|
||||||
<a href="{{$commitRepoLink}}/wiki/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
|
<a href="{{$commitRepoLink}}/wiki/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
|
||||||
|
{{else if $.PageIsPullCommits}}
|
||||||
|
<a href="{{$commitRepoLink}}/pulls/{{$.Issue.Index}}/commits/{{.ID}}" rel="nofollow" class="{{$class}}">
|
||||||
{{else if $.Reponame}}
|
{{else if $.Reponame}}
|
||||||
<a href="{{$commitRepoLink}}/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
|
<a href="{{$commitRepoLink}}/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
|
||||||
{{else}}
|
{{else}}
|
||||||
|
@ -54,6 +56,8 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if $.PageIsWiki}}
|
{{if $.PageIsWiki}}
|
||||||
</a>
|
</a>
|
||||||
|
{{else if $.PageIsPullCommits}}
|
||||||
|
</a>
|
||||||
{{else if $.Reponame}}
|
{{else if $.Reponame}}
|
||||||
</a>
|
</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
Loading…
Reference in a new issue