Skip to content

Commit ca74b07

Browse files
lunnyGiteaBot
andauthored
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 <[email protected]>
1 parent 7018659 commit ca74b07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/repo/commits_list.tmpl

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
{{end}}
4444
{{if $.PageIsWiki}}
4545
<a href="{{$commitRepoLink}}/wiki/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
46+
{{else if $.PageIsPullCommits}}
47+
<a href="{{$commitRepoLink}}/pulls/{{$.Issue.Index}}/commits/{{.ID}}" rel="nofollow" class="{{$class}}">
4648
{{else if $.Reponame}}
4749
<a href="{{$commitRepoLink}}/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
4850
{{else}}
@@ -54,6 +56,8 @@
5456
{{end}}
5557
{{if $.PageIsWiki}}
5658
</a>
59+
{{else if $.PageIsPullCommits}}
60+
</a>
5761
{{else if $.Reponame}}
5862
</a>
5963
{{else}}

0 commit comments

Comments
 (0)