mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 20:59:31 +01:00
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
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,8 @@
|
|||
{{end}}
|
||||
{{if $.PageIsWiki}}
|
||||
<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}}
|
||||
<a href="{{$commitRepoLink}}/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
|
||||
{{else}}
|
||||
|
@ -54,6 +56,8 @@
|
|||
{{end}}
|
||||
{{if $.PageIsWiki}}
|
||||
</a>
|
||||
{{else if $.PageIsPullCommits}}
|
||||
</a>
|
||||
{{else if $.Reponame}}
|
||||
</a>
|
||||
{{else}}
|
||||
|
|
Loading…
Reference in a new issue